From 7638241523e17df24cc72d216837e437e2fb0493 Mon Sep 17 00:00:00 2001 From: nahi Date: Wed, 1 Oct 2003 15:29:43 +0000 Subject: * test/logger/test_logger.rb: unlinking file before close causes problem under win32 box. * lib/xsd/datatypes.rb(XSDFloat, XSDDouble): add +/- sign explicitly when stringified and embedded into XML instance. Ruby's sprintf may format -0.0 as "0.0" (no minus sign) depending on underlying C sprintf implementation. * test/xsd/test_xsd.rb, test/soap/test_basetype.rb: follow above change. * test/soap/calc/*: give httpd config param "CGIInterpreter". "/usr/bin/env ruby" thing does not work under non-Unix boxes. * ChangeLog: corrected wrong DoW of my log entries... git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/xsd/datatypes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/xsd/datatypes.rb b/lib/xsd/datatypes.rb index 03e42d21d..bb4f53e59 100644 --- a/lib/xsd/datatypes.rb +++ b/lib/xsd/datatypes.rb @@ -329,7 +329,7 @@ private elsif @data.infinite? == -1 '-INF' else - sprintf("%.10g", @data) + sprintf("%+.10g", @data) end end @@ -397,7 +397,7 @@ private elsif @data.infinite? == -1 '-INF' else - sprintf("%.16g", @data) + sprintf("%+.16g", @data) end end end -- cgit