Hi
Greetings
I have a Quantity(Decimal) Field in a table. It is showing a value of 128.39284 in the form. But when in zoom the record and look at the values it is showing me value as 128.39284123456.
why is it happening?? because of this reason, i am not able to compare this field with another field which has the same value(12.39284)..
Thank You
********
Friend Ship is just like breeze.. you can't smell it, touch it,hold it.
********
0
Comments
The numbers you see in the form has been rounded for display purposes, but the data behind has not, which is why your comparison fails. Use the AL function ROUND
Sample code (d1 through d4 are decimals)
Niels-Henrik Sejthen
Senior Software Developer
Microsoft Dynamics NAV
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.