From d323eb257988e27878a674b87db3a1e71687a8dd Mon Sep 17 00:00:00 2001 From: nahi Date: Sun, 5 Oct 2003 05:42:04 +0000 Subject: * 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 --- lib/xsd/datatypes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit