Inserting decimal number in aerospike


#1

Aerospike Community Edition build 3.14.1.3

When I am inserting the decimal number 76.3269 in aerospike using aql, the value actually being inserted in aerospike is 76.32689999999999.

Please help here.

Regards, Vishal


#2

Aerospike stores floating point values as double precision IEEE 754 floating points. I believe this is an example of a normal floating point rounding error.

http://floating-point-gui.de/errors/comparison/