Round off decimals easily?

As the title, is there a class method in Flash to limit and round of a number’s decimals ?
Like :
roundToTwoDecimals(1.2362 ) = 1.24
Thanks in advance fellow flashers!