This content has been marked as final.
Show 2 replies
-
1. Re: Doubt in roundup decimal number
kraikit Jan 12, 2012 4:20 PM (in response to senthil s)Sample code:
var f:Number = 2.3567;
trace("round: " + Math.round(f));
trace("round to the tenth: " + (Math.round(f * 10) / 10));
Result:
round: 2
round to the tenth: 2.4
-- Tom
-
2. Re: Doubt in roundup decimal number
senthil s Jan 17, 2012 11:01 PM (in response to kraikit)Thank you so much. I tried result=Math.round(f * 10) / 10; instead of result=(Math.round(f * 10) / 10); Now working fine .......Thanks a lot Senthil, Flex Developer

