# Rounding up problems :(

**URL:** <https://forum.kirupa.com/t/rounding-up-problems/54452>\
**Category:** Uncategorized\
**Created:** [June 14, 2004, 8:32pm UTC](https://forum.kirupa.com/t/rounding-up-problems/54452 "2004-06-14T20:32:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasier](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Nasier](https://forum.kirupa.com/u/Nasier)\
**Post date:** [June 14, 2004, 8:32pm UTC](https://forum.kirupa.com/t/rounding-up-problems/54452/1 "2004-06-14T20:32:01Z")

</div>

I’ve this problem with rounding up. My problem is more  
complex than i describe here but I’m sure i can figure  
out the rest myself once I got this working. I want flash  
to round up with two decimals at all time.

for example:

```auto

x = 123.456789
getal = (Math.round (100*x))/100;

```

Now getal returns 123.46 and thats perfect.  
But if x = 26 getal returns 26 while I want  
it to return 26.00

How can I achieve this?

Thanx in advance.

Nasier
