gd_bam 0.1.27 → 0.1.28

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bam
2
- VERSION = '0.1.27'
2
+ VERSION = '0.1.28'
3
3
  end
@@ -131,8 +131,21 @@ function string gd_date_compliance(string a_date) {
131
131
  return a_date;
132
132
  }
133
133
 
134
+ function decimal deal_with_scientific_notation(long a_number) {
135
+ if (isnull(a_number)) {
136
+ return null;
137
+ } else {
138
+ return str2decimal(num2str(a_number));
139
+ }
140
+ }
141
+
142
+
134
143
  function decimal deal_with_scientific_notation(string a_number) {
135
- return str2decimal(a_number);
144
+ if (isnull(a_number) || a_number == "") {
145
+ return null;
146
+ } else {
147
+ return str2decimal(a_number);
148
+ }
136
149
  }
137
150
 
138
151
  function integer transform() {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gd_bam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.28
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: