[Ironruby-core] Float specs

Orion Edwards Orion.Edwards at gallagher.co
Tue Jan 31 22:20:28 EST 2012


Added the following pull request 

https://github.com/IronLanguages/main/pull/54

This has the following fixes, which are all pretty minor:
* Update Float#<=> to handle overflowed values correctly as per rubyspec
* Update Float#divmod as per rubyspec 
* Implement Float#fdiv, which is just an alias for /
* Update Float#modulo and Float#% to raise ZeroDivisionError (as per 
rubyspec)
* Implement Float#round(decimalPlaces)
The last one isn't actually in rubyspec, but MRI has had it for ages and 
it's very useful.
The only things left for float_specs all involve converting it to 
Rational, so I'd suggest leaving them until IronRuby's implementation of 
Rational gets sorted out.
Thanks, Orion


______________________________________________________

Orion Edwards | Technical Leader 
PHONE +64 7 838 9800 | FAX +64 7 838 9801 | 
EMAIL orion.edwards at gallagher.co | WEB www.gallagher.co  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20120201/bca86ebf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3465 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20120201/bca86ebf/attachment.gif>


More information about the Ironruby-core mailing list