[Bug #3734] Float('0xf.fp') $B$,%(%i!<$K$J$i$J$$(B

Bug #3734: Float(‘0xf.fp’) e$B$,%(%i!<$K$J$i$J$$e(B
http://redmine.ruby-lang.org/issues/show/3734

e$B5/I<<Te(B: tadayoshi funaba
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.3dev (2010-08-22 trunk 29068) [i686-linux]

Float(‘0xf.fp’) e$B$,%(%i!<$K$J$i$J$$!#e(B

$ ./ruby -e “p Float(‘0xf.fp’)”
15.9375

$ ./ruby -e “p Float(‘0xf.fq’)”
-e:1:in Float': invalid value for Float(): "0xf.fq" (ArgumentError) from -e:1:in

$ ./ruby -e “p Float(‘15.9p’)”
-e:1:in Float': invalid value for Float(): "15.9p" (ArgumentError) from -e:1:in

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs