# FMX04 - rounding numbers (kind of)

**URL:** <https://forum.kirupa.com/t/fmx04-rounding-numbers-kind-of/112355>\
**Category:** Uncategorized\
**Created:** [June 6, 2004, 7:14pm UTC](https://forum.kirupa.com/t/fmx04-rounding-numbers-kind-of/112355 "2004-06-06T19:14:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JosipRadan](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JosipRadan](https://forum.kirupa.com/u/JosipRadan)\
**Post date:** [June 6, 2004, 7:14pm UTC](https://forum.kirupa.com/t/fmx04-rounding-numbers-kind-of/112355/1 "2004-06-06T19:14:33Z")

</div>

I have a problem for a project about numbers (standard deviations…)

How do i round the nubers to say 2 decimals, how do i cut out the rest of the  
number from a dynamic field i’m using to display them…

example:

2.45727276566 to 2.45 (or 2.46 doesn’t really matter in my case)

im used to using the standard syntax in cpp ("%.2f" or in flash i presume something  
like variable\_im\_displaying.2 but it doesn’t work

if anyone knows please help 😃
