4 ms·
Show HN: I made a rational object for javascript
- larrybattle 14y agoThis is a project that I've been working on in my free time. Any feedback would be great. :)
- dbaupp 14y agoLooks good! Just a heads up: the "defined in: ..." links in the documentation are broken (http://larrybattle.github.com/Ratio.js/doc/classes/Ratio.html http://larrybattle.github.com/Ratio.js/doc/classes/Ratio.htm...).
- larrybattle 14y agoThank you for your feedback. I'll look into why YUIDocs isn't linking to the source.
- habosa 14y agoThis looks great. Especially with so many comparisons common such as x >= 0.5 etc this will keep those weird errors away. Thanks for sharing.
- lordgilman 14y agoIf this is based on/complies with the IBM decimal arithmetic standard you should advertise the compliance.
- aston 14y agoI'm not sure why it's possible to change the division sign, but using a colon (":") to indicate a fraction is confusing given that it's generally used for odds. ( 0.1 + 0.2 )/( 1/3 * 12 ) = 3/40 3:40 = "three to forty odds" = 3/43
- larrybattle 14y agook. I'll change that.