Package | com.joebillman.utils |
Class | public class Precisely |
Inheritance | Precisely ![]() |
Method | Defined By | ||
---|---|---|---|
setPrecision(val:Number, precision:uint):Number [static]
This function allows you to set the decimal precision for a number. | Precisely |
setPrecision | () | method |
public static function setPrecision(val:Number, precision:uint):Number
This function allows you to set the decimal precision for a number. The values range from 0 (remove decimal places) up. Note: you get strange results for values higher than 8.
Parameters
val:Number — The number that you will be applying the precision to.
| |
precision:uint — The precision value.
|
Number — Number The number that was passed in with the newly generated precision.
|