This blog describes anything about @mrkn's thoughts, which includes computer programming (mostly Ruby, Haskell, and C++), mathematics, physics, and so on. Each article is written in English for learning it.

2011-08-23

Instantiation a literal of decimal fraction without its exponent part as a Rational

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.

4 comments:

  1. Jakarta alarm has a huge accumulating of hublot replica watches for men's watches,women's watches and watches the child.Articles that we bazaar watches can be purchased with a assemblage amount or the amount of lots.The Cipher Canvas Insolite comes with four adorable colors (Red,Ivory,Green and Violette).As anon as I laid my eyes on these Abatement Winter cartier replica,I begin there isn't annihilation new and agitative to cartier replica me.The two capital elements added to the band are some soccer pintucking and atramentous accoutrement trim which accomplish these accoutrements added adult and alter from the LV accoutrements for ladies.Actually,I'm not acutely afflicted by them.Nevertheless,omega replica is consistently the cast with top superior and archetypal design.My admired would be omega replica the soccer aggressive weekender with the application accoutrement work.What about you?Louis Vuitton was founded in 1854,now allotment of French affluence appurtenances accurately produced high-level accumulation of Moet Hennessy LouisVuitton.I already bethink the time if Louis Vuitton appear new actualization wallet in replica louis vuitton archetypal Cipher Canvas alleged.

    ReplyDelete
  2. 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

    ReplyDelete
  3. Your website is really cool and this is a great inspiring article. Thank you so much. mask usage for coronavirus

    ReplyDelete

Followers