1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* sample/test.rb: avoid the MSVCRT *printf problem(float).

[ruby-dev:20037]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-04-20 15:52:56 +00:00
parent 3f0eab216f
commit 472672dfe6
3 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 21 00:47:42 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* sample/test.rb: avoid the MSVCRT *printf problem(float).
[ruby-dev:20037]
Mon Apr 21 00:11:15 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* marshal.c (w_float): append least mantissa bits to get rid

View file

@ -995,8 +995,11 @@ nan.test(-0.001);
nan.test(1.0/0);
nan.test(-1.0/0);
s = "3.7517675036461267e+17"
test_ok(s == sprintf("%.16e", s.to_f))
#s = "3.7517675036461267e+17"
#test_ok(s == sprintf("%.16e", s.to_f))
f = 3.7517675036461267e+17
test_ok(f == sprintf("%.16e", f).to_f)
test_check "bignum"
def fact(n)

View file

@ -1,11 +1,11 @@
#define RUBY_VERSION "1.8.0"
#define RUBY_RELEASE_DATE "2003-04-20"
#define RUBY_RELEASE_DATE "2003-04-21"
#define RUBY_VERSION_CODE 180
#define RUBY_RELEASE_CODE 20030420
#define RUBY_RELEASE_CODE 20030421
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2003
#define RUBY_RELEASE_MONTH 04
#define RUBY_RELEASE_DAY 20
#define RUBY_RELEASE_DAY 21