# Round off decimals easily?

**URL:** <https://forum.kirupa.com/t/round-off-decimals-easily/235746>\
**Category:** flash\
**Created:** [August 14, 2007, 12:56pm UTC](https://forum.kirupa.com/t/round-off-decimals-easily/235746 "2007-08-14T12:56:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flesh](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@flesh](https://forum.kirupa.com/u/flesh)\
**Post date:** [August 14, 2007, 12:56pm UTC](https://forum.kirupa.com/t/round-off-decimals-easily/235746/1 "2007-08-14T12:56:55Z")

</div>

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!
