# Really simple answer I am sure

**URL:** <https://forum.kirupa.com/t/really-simple-answer-i-am-sure/191055>\
**Category:** Uncategorized\
**Created:** [June 16, 2006, 5:33pm UTC](https://forum.kirupa.com/t/really-simple-answer-i-am-sure/191055 "2006-06-16T17:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [June 16, 2006, 5:33pm UTC](https://forum.kirupa.com/t/really-simple-answer-i-am-sure/191055/1 "2006-06-16T17:33:46Z")

</div>

Hey guys i have a preloader and some dynamic text outputting the %, but its in decimal form. How do I make it a whole number.

here is my as:  
[AS]  
stop();  
this.onEnterFrame = function() {  
var amount:Number = this.getBytesLoaded() / this.getBytesTotal() \* 100;  
loader.\_xscale = amount;  
percent\_txt.text = “%” + amount;  
if(amount == 100) {  
this.gotoAndPlay(3);  
delete this.onEnterFrame;  
}  
}  
[/AS]

I am assuming its going to be something to do with Math.round, but I dont know where to put it. Thanks guys.  
-Ronnie
