kennedymr2
Programmer
Is there a simple way of rounding UP to the nearest .50 cents
eg
12.00 = 12.00
12.01 = 12.50
12.49 = 12.50
12.50 = 12.50
12.51 = 13.00
12.78 = 13.00
I can do it by writing a lot of ifs' etc.
Was interested if there is a simple way of doing this.
Appreciate any help
eg
12.00 = 12.00
12.01 = 12.50
12.49 = 12.50
12.50 = 12.50
12.51 = 13.00
12.78 = 13.00
I can do it by writing a lot of ifs' etc.
Was interested if there is a simple way of doing this.
Appreciate any help