# Rounding number to 2decimal point

**URL:** <https://forum.kirupa.com/t/rounding-number-to-2decimal-point/98865>\
**Category:** Uncategorized\
**Created:** [January 12, 2004, 8:51am UTC](https://forum.kirupa.com/t/rounding-number-to-2decimal-point/98865 "2004-01-12T08:51:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rathod\_bina](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rathod\_bina](https://forum.kirupa.com/u/rathod_bina)\
**Post date:** [January 12, 2004, 8:51am UTC](https://forum.kirupa.com/t/rounding-number-to-2decimal-point/98865/1 "2004-01-12T08:51:35Z")

</div>

hi there!  
what actionscript do i need to round off a number to 2 decimal points?  
i have this script which brings me the number but consisting of 8 digits!

digital = \_root.val[0].substr(0,\_root.val[0].indexOf("\<br\>"));  
digital = Math.abs(digital);  
trace(digital);  
trace(“Variable:”);  
trace(\_root.val(0));  
temp\_display = Math.round(digital);

if anyone has idea do give us a shout  
thanks!
