From: William Djaja Tjokroaminata Date: 2002-09-14T04:42:33+09:00 Subject: Re: float precision Hi, No, you don't miss any precision. Internally, the Ruby Float type is always represented by the C double type, with precision of at least 2.220446049e-16 (depends on how you define it). You can just try this printf "%.6f\n", a and it will give you your last 6 digits (on display). Regards, Bill =========================================================================== Daniel Bretoi wrote: > Sorry if this has been answered before. > I'll demonstrate my question with irb. > irb(main):001:0> a = 20020912.194220 > 20020912.19 > Why do I miss the last 5 digits when I try to assign a? > I tried using Bignum, but I could use some syntax help. > note on documentation: I love the programmers guide, but I really > cherish some exampels for class defenitions etc on how to use a class. > db > -- > You don't exist, go away!