now i want to check, if the result is an integer or a decimal.
if it's an integer, i have to do something different, if it's a decimal with 1 or more decimal-places i can do another step.
i tried it: Variable XXX as variant an the code: ok := xxx.isinteger
but if the result is 4, this does not recognize it as an integer.
Comments
result type is based on operators used and on used variables...
1 / 2 = decimal
1 div 2 = integer
for example...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
2500 / 500
now i want to check, if the result is an integer or a decimal.
if it's an integer, i have to do something different, if it's a decimal with 1 or more decimal-places i can do another step.
i tried it: Variable XXX as variant an the code: ok := xxx.isinteger
but if the result is 4, this does not recognize it as an integer.
:?:
it depend on what you have...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
if (x mod 1) <> 0 then
there is an remainder
expl.:
x := 85.3;
x mod 1 = 0.3
IF EVALUATE(IntVar,Result) then
integer
ELSE
decimal;