Aerospike function not working properly

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

| 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.

This is how floating point arithmetic is expected to work.

1 Like

Thanks Kevin for the help.

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