Does anyone know how to do an if statement on the decimal portion of a value?
@days
Local Numbervar nWorkDays;
nWorkDays := ({@WorkDays} - {@SumLeaveFinal})/8;
this value will change for each person for each month [/color blue]
for example:
I need to format out the following:
If nWorkDays = 18.00 then print 18.00
if nWorkDays are from 18.01 to 18.49 then print 18+
if nWorkDays = 18.50 then print 18.50
if nWorkDays are from 18.51 to 18.99 then print 19+
I know how to do it on the whole value but am not sure how to extract just the decimal portion.
Thanks
Lhuffst
@days
Local Numbervar nWorkDays;
nWorkDays := ({@WorkDays} - {@SumLeaveFinal})/8;
this value will change for each person for each month [/color blue]
for example:
I need to format out the following:
If nWorkDays = 18.00 then print 18.00
if nWorkDays are from 18.01 to 18.49 then print 18+
if nWorkDays = 18.50 then print 18.50
if nWorkDays are from 18.51 to 18.99 then print 19+
I know how to do it on the whole value but am not sure how to extract just the decimal portion.
Thanks
Lhuffst