benjamin
Member
Hi,
Silly question this, but i'm after a function or method to round a number either up or down based on the following:
####.abcdefg.....
if abc <= ##5.. then
rounddown
else
if abc > ##50 then
roundup
endif
endif
result being: #####.##
all the rounding methods i've seen look like they round up (which i'd consider normal) but client has a desire to round anything like 1.295 DOWN
AND 1.2951 UP
hope that helps - your help appreciated.
Silly question this, but i'm after a function or method to round a number either up or down based on the following:
####.abcdefg.....
if abc <= ##5.. then
rounddown
else
if abc > ##50 then
roundup
endif
endif
result being: #####.##
all the rounding methods i've seen look like they round up (which i'd consider normal) but client has a desire to round anything like 1.295 DOWN
AND 1.2951 UP
hope that helps - your help appreciated.