# Quick question - adding a % sign

**URL:** <https://forum.kirupa.com/t/quick-question-adding-a-sign/182442>\
**Category:** flash\
**Created:** [March 18, 2006, 7:45am UTC](https://forum.kirupa.com/t/quick-question-adding-a-sign/182442 "2006-03-18T07:45:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmreyes](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jmreyes](https://forum.kirupa.com/u/jmreyes)\
**Post date:** [March 18, 2006, 7:45am UTC](https://forum.kirupa.com/t/quick-question-adding-a-sign/182442/1 "2006-03-18T07:45:08Z")

</div>

Hey guys,

I have this simple preloader.  
Works well.but…

part of the code:  
percent\_done = int((loaded\_bytes/total\_bytes)\*101);

This only dispalys the number on the percent\_done textfield.  
i want it to have a percent sign. like 1\*\*% **-100** %\*\*.

Cant figure out what to add to that line of code.  
Can someone please help me out.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jmreyes](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jmreyes](https://forum.kirupa.com/u/jmreyes)\
**Post date:** [March 20, 2006, 2:36am UTC](https://forum.kirupa.com/t/quick-question-adding-a-sign/182442/2 "2006-03-20T02:36:14Z")

</div>

Thought it would be easy. Weird that nobody knows.  
Got it anyway.

x = int((loaded\_bytes/total\_bytes)\*101);  
percent\_done = x + “%”
