all groups > flash actionscript > march 2004 >
You're in the

flash actionscript

group:

math.ceil not working properly



Re: math.ceil not working properly tralfaz
3/18/2004 3:44:27 PM
flash actionscript: You might try it with a capitol M since MX2004 is case sensitive..
I don't know if that is the problem since I don't use 2004.
Math.ceil()
tf

[quoted text, click to view]

math.ceil not working properly S.Rhea
3/18/2004 11:10:24 PM
Ok, using ActionScript2.0 and using the following script:

x = 25.1;
y = math.ceil(x);
trace(y);

I get a result of "undefined". However, when I use the following:

trace(math.ceil(25.1));

I get a result of 26...WHAT GIVES???? Any ideas?
AddThis Social Bookmark Button