# Rounding a number down to two decimal places!

**URL:** <https://forum.kirupa.com/t/rounding-a-number-down-to-two-decimal-places/160942>\
**Category:** Uncategorized\
**Created:** [August 30, 2005, 8:56pm UTC](https://forum.kirupa.com/t/rounding-a-number-down-to-two-decimal-places/160942 "2005-08-30T20:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [August 30, 2005, 8:56pm UTC](https://forum.kirupa.com/t/rounding-a-number-down-to-two-decimal-places/160942/1 "2005-08-30T20:56:02Z")

</div>

I’m trying to calculate loan payments using actionscript.

i’d like to have my variable’s value like this:

843.34

instead of:

843.3454 (how it’s displaying now)

since I’m ultimately going to display $dollar amounts.

I know how to use Math.round() but I’d like to go to two decimal places!

anybody done this before?
