I have a field called T_Amount data type is float,
e.g= T_Amount=11800
When i make formula in query (11800/24)*35.25=17331.25
but actually if i make in calculator (11800/24)*35.25=17331.24999
i want this full figure.
I have a field called T_Amount data type is float,
e.g= T_Amount=11800
When i make formula in query (11800/24)*35.25=17331.25
but actually if i make in calculator (11800/24)*35.25=17331.24999
i want this full figure.
Your division is interpreted as an integer division because you have two integers being divided.
If you do the following you'll get a more decimal characters:
SELECT (11800/24.0)*35.25
Which returns:
17331.24997650
So you need to be sure that you have 'float' values inside the division as well. So use decimal instead of float for division.