Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Flash only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Flash
Math.round() to round up
Math.round() to round up
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
evvedevve
New Member
Join Date:
Mar 2010
Posts:
1
#1
Math.round() to round up
Mar 24 '10, 07:00 PM
if amount is 238 then i want to display in round figur as 240
plz answer me soon..
Vikram Raman
New Member
Join Date:
Feb 2010
Posts:
24
#2
Apr 27 '11, 07:26 AM
Instead of using math.round use math.ceil or math.floor
Comment
Post
Cancel
Mediamonkey
New Member
Join Date:
Jul 2011
Posts:
2
#3
Jul 17 '11, 12:18 PM
Devide by 10, round, then multiply by 10.
var value:Number = 238;
var rounded:Number = Math.round(valu e/10)*10;
trace(rounded); // result: 240
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment