[1.9] Kernel.Float can handle hexadecimal numbers as strings
------------------------------------------------------------
Key: JRUBY-5022
URL: http://jira.codehaus.org/browse/JRUBY-5022
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Reporter: David Calavera
Specs for Kernel.Float don't say anything about this behavior but some others
for String.% fail because of this.
{noformat}
$ ruby -ve 'p Float("0xA")'
ruby 1.9.2dev (2010-06-18 revision 28360) [x86_64-darwin10.4.0]
10.0
$ bin/jruby --1.9 -ve 'p Float("0xA")'
jruby 1.6.0.dev (ruby 1.9.2dev trunk -1) (2010-08-17 9b0460f) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_20) [x86_64-java]
-e:1: invalid value for Float(): "0xA" (ArgumentError)
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email