From: Stefan Rusterholz Date: 2007-07-20T05:26:15+09:00 Subject: Re: Float.to_int not working ?? John Joyce wrote: > For more accurate math, use really large integers and simply keep > track of where you want your decimal. Or with ruby use BigDecimal or Rational (won't work for applications where you have to use functions that will result in real numbers, like square-root, sin, etc.). > If you absolutely must use floats for something, and you need greater > accuracy, you should use something like C and its extra long float > types, coupled with at least a 64 bit system, ideally go get an old > PowerMac G5, its math coprocessor is 128 bits. It'll give you as good > as you can get without buying a much more expensive machine or > cobbling together a cluster of computers. Not sure but it seems that you think 64bitness of a System influences the float accuracy. It does not. Regards Stefan -- Posted via http://www.ruby-forum.com/.