summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 15:29:43 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 15:29:43 +0000
commit637af54751be6cae06f9cafda9e6ba50b76c61eb (patch)
tree35f0a5b4fb6324e3695cef7149036b6fcd0e3d3e /lib
parent379c5c1e437821941802946fd370f0b84eb7363b (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/xsd/datatypes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xsd/datatypes.rb b/lib/xsd/datatypes.rb
index 03e42d21d2..bb4f53e59a 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