From: Chad Perrin Date: 2012-01-24T05:19:42+09:00 Subject: Re: Microrant on Ruy's Math Skills On Tue, Jan 24, 2012 at 03:14:27AM +0900, Steve Klabnik wrote: > > Even that and the '1.1'.to_dec option mentioned elsewhere seem pretty > > cumbersome when working with a lot of numbers. �How difficult would it be > > to change the way Ruby parses 1.1 within a given program so it just > > automatically uses BigDecimal rather than Float? �That way, one could > > just tell Ruby to use BigDecimal instead of Float by default at the top > > of the program file and go forward confident that Float errors will not > > creep into the program (unless using a library that explicitly uses > > floating point numbers within itself). > > Parse time is different than execution time. . . . How difficult would it be to actually acknowledge what you obviously know my question to have been after making a correction of terminology? -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]