-
Hi everyone, just a quick question.
When Im using getbytesloaded() etc for my preloader I always get this huge number to about 17 decimal places.
ie "45.768634620750720753% of 543442.76582535 loaded"
How can I make so the variable shown is rounded up (or just with no decimal places)
Hope someone can help,
Thanks,
Pete_M
-
int(YourNumberHere)
This will make integer of you floating number. Try!
-
sorry -
Sorry - So where do I put the int(??)
strP = intPercent + "% of " +(intBytes/1000)
intbytes = getbytestotal()
intpercent = (getbytesloaded()/getbytestotal())*100 etc..
Pete_M
-
Sorry - Done it.
Thanks alot for the help!!
Pete_M
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|