Rounding up to 2 decimal places

hi all,

does anyone have or know of a simple sure fire way to round up a figure to 2 decimal places.

flash has a horible habbit of removing 0’s.

I need to round up figures but having to split a number like 100.056 (fine when its a string, but not when its a number)

rounding up the 056 gets complicated as flash will see it as 56.

a class or function would be much appreciated.

Or would it be far easier and reliable to send the figures out of flash to php

:confused: