From: Neve Le Date: 2010-06-30T21:06:58+09:00 Subject: Re: Increase significant digits in Float Siep Korteling wrote: >> Xavier Noria wrote: >> That 15 is hard-coded in the definition of Float#to_s. > > Yes, and exposing more digits is not accurate: > The float is bogus after the 16th digit. Working with big numbers here, it seems that precision is only guaranteed to 15 digits on either side of the decimal. When a whole number >15 digits is divided the decimal is approximated, and anything >17 digits prints a float of n.0 no matter how it's "%n.nf" formatted. Is the hard-coded 15 just a "safe" limit? Would I be able to recompile ruby with a higher definition? If possible, how high could I go? -- Posted via http://www.ruby-forum.com/.