Aerospike function not working properly

#1
+--------------------+

| key4                  |

+--------------------+

| 0.8999999999999999 |

+--------------------+

as_operations_add_incr_double()

The above function is having a incrementing the float value in wrong manner, when used for some time. Example, when I am adding 0.3 to bin using the above function, for first time it works properly, but when I use it 3rd time, it should put 0.9 in the bin, but it is adding something which is rounding off to the above value. Please help.

#2

This is how floating point arithmetic is expected to work.

https://www.floating-point-gui.de/basic/

1 Like
#3

Thanks Kevin for the help.

closed #4

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.