Crystal has it's own ideas about handling numeric fields, but I would think if you just use the Truncate() function, you would get the expected result. What algorithm are you using?
I think you need to truncate the field first and then do the division.
Create the following formula:
local numbervar x := truncate({YourNumberField});
x := x / 1000;
x;
HOWEVER, I will bet money that this will not always return the correct value. You need to deal with these numbers in your database to ensure the correct values. But, this should work most of the time.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.