# Decimal places in flash MX

**URL:** <https://forum.kirupa.com/t/decimal-places-in-flash-mx/271691>\
**Category:** Uncategorized\
**Created:** [September 26, 2008, 2:26pm UTC](https://forum.kirupa.com/t/decimal-places-in-flash-mx/271691 "2008-09-26T14:26:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobydog](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@tobydog](https://forum.kirupa.com/u/tobydog)\
**Post date:** [September 26, 2008, 2:26pm UTC](https://forum.kirupa.com/t/decimal-places-in-flash-mx/271691/1 "2008-09-26T14:26:20Z")

</div>

I am not sure how to bring numbers down to 2 decimal places. I have some simple code that states the calculation,

but “grandtotal” comes up as example… 37.335622

Anyone know how to bring the decimal place to 2?

this is the script…

grandtotal = Number (total2) / Number (grand);

thanks,  
TD
