Note the difference in values. The first indicates conversion through a float representation. Doubles have substantially more precision. A good rule of thumb is that floats have about 7 digits, doubles about 17.
On Mon, Jan 19, 2009 at 8:04 AM, Esteve Fernandez <[email protected]>wrote: > > And I get an output of 0.90000002 > > It's not actually a problem in Thrift. As Ted pointed out, there's no > exact representation for floats in base 2. For example: > > python -c "f = 0.9; print repr(f)" > > gives 0.90000000000000002 here. > >
