Using Korn scripting, is there any way of rounding up a decimal number to the next highest whole non- decimal number ? Examples:
if $num = 2.2 then I want $num to = 3
if $num = 17.28 then I want $num to = 18
if $num = 1002.758 then I want $num to = 1003
Any help or direction would be great. Thanks so much.
if $num = 2.2 then I want $num to = 3
if $num = 17.28 then I want $num to = 18
if $num = 1002.758 then I want $num to = 1003
Any help or direction would be great. Thanks so much.