From: Joel VanderWerf Date: 2002-09-14T04:15:08+09:00 Subject: Re: float precision 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? irb(main):001:0> a = 20020912.194220 20020912.19 irb(main):002:0> printf "%.6f", a 20020912.194220nil The precision is still there. It must just be how irb chooses to display numbers.