In Ruby, a literal of decimal fraction is instantiated as a Float.
I make a patch to modify it so that a literal of decimal fraction without its exponent part is instantiated as a Rational.
The reason why I wrote this patch is that I think most Rubyists don't need to use Float values. Correct use of Float values is difficult for many people, especially most of Rubyists, who aren't well acquainted with floating-point number arithmetic. I want to realize the world that nobody is in trouble with floating-point errors.
I will talk about such a topic in RubyConf 2011. The talk is titled "Float is Legacy". I've got this title from Ujihisa. I love this title.
Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. art in japan
ReplyDeleteYour website is really cool and this is a great inspiring article. Thank you so much. mask usage for coronavirus
ReplyDeletePretty good post. Share our website with youCNC Machining Service.
ReplyDeleteThis really is therefore stunning as well as innovative. I simply adore the actual colours as well as whomever will get this within the postal mail is going to be grinning. whoer.net
ReplyDelete