diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-05 05:42:04 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-05 05:42:04 +0000 |
commit | d323eb257988e27878a674b87db3a1e71687a8dd (patch) | |
tree | 1c0c636a4dbe03eeab831aa73fff92ca39ff4939 /lib | |
parent | a415b799f52f07d318abc0489fad28e304620a90 (diff) | |
download | ruby-d323eb257988e27878a674b87db3a1e71687a8dd.tar.gz ruby-d323eb257988e27878a674b87db3a1e71687a8dd.tar.xz ruby-d323eb257988e27878a674b87db3a1e71687a8dd.zip |
* lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.
* test/soap/marshal/test_marshal.rb: ditto.
* test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEECT"] to RUBYBIN.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xsd/datatypes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xsd/datatypes.rb b/lib/xsd/datatypes.rb index 0be64fe63..a1e3e5562 100644 --- a/lib/xsd/datatypes.rb +++ b/lib/xsd/datatypes.rb @@ -600,7 +600,7 @@ private year, @data.mon, @data.mday, @data.hour, @data.min, @data.sec) if @data.sec_fraction.nonzero? fr = @data.sec_fraction * SecInDay - shiftsize = fr.denominator.to_s.size + shiftsize = fr.denominator.to_s.size + 1 fr_s = (fr * (10 ** shiftsize)).to_i.to_s s << '.' << '0' * (shiftsize - fr_s.size) << fr_s.sub(/0+$/, '') end |