зеркало из https://github.com/github/ruby.git
* numeric.c (flo_to_s): change format specifier to "%.15g" to
avoid unnecessary 9s (e.g. 99.59999999999999). (ruby-bugs-ja PR#406) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bf12ea0deb
Коммит
0b39cf78fe
|
@ -1,3 +1,8 @@
|
|||
Thu Mar 20 16:12:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* numeric.c (flo_to_s): change format specifier to "%.15g" to
|
||||
avoid unnecessary 9s (e.g. 99.59999999999999). (ruby-bugs-ja PR#406)
|
||||
|
||||
Thu Mar 20 16:03:18 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* parse.y (stmt, primary): get rid of SEGV at empty or invalid
|
||||
|
|
|
@ -273,7 +273,7 @@ flo_to_s(flt)
|
|||
VALUE flt;
|
||||
{
|
||||
char buf[24];
|
||||
char *fmt = "%.16g";
|
||||
char *fmt = "%.15g";
|
||||
double value = RFLOAT(flt)->value;
|
||||
double avalue, d1, d2;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче