scaffold.libs_as.flair.utils.math.floor.as Maven / Gradle / Ivy
package flair.utils.math
{
/**
* Optimized Math.floor
*/
public function floor( n : Number ) : int
{
var ni : int = n;
return ( n < 0 && n != ni ) ? ni - 1 : ni;
}
}