# Round up

**URL:** https://forum.kirupa.com/t/round-up/167690
**Category:** Uncategorized
**Created:** [October 31, 2005, 2:17am UTC](https://forum.kirupa.com/t/round-up/167690 "2005-10-31T02:17:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![squiddie](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@squiddie](https://forum.kirupa.com/u/squiddie)
#### Post date: [October 31, 2005, 2:17am UTC](https://forum.kirupa.com/t/round-up/167690/1 "2005-10-31T02:17:13Z")

</div>

does anyone know to round the percent up to whole numbers? heres the code i’ve used:

```auto
percent = _framesloaded*100/_totalframes;
setProperty ("_root.bar", _xscale, percent);

```
