# Rounding up to 2 decimal places

**URL:** <https://forum.kirupa.com/t/rounding-up-to-2-decimal-places/168970>\
**Category:** Uncategorized\
**Created:** [November 11, 2005, 6:17pm UTC](https://forum.kirupa.com/t/rounding-up-to-2-decimal-places/168970 "2005-11-11T18:17:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![System\_Idle](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@System\_Idle](https://forum.kirupa.com/u/System_Idle)\
**Post date:** [November 11, 2005, 6:17pm UTC](https://forum.kirupa.com/t/rounding-up-to-2-decimal-places/168970/1 "2005-11-11T18:17:44Z")

</div>

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

😕
