Packagecom.joebillman.utils
Classpublic class Precisely
InheritancePrecisely Inheritance Object

Precisely: This is a static class that allows you to do precision based functions.



Public Methods
 MethodDefined By
  
setPrecision(val:Number, precision:uint):Number
[static] This function allows you to set the decimal precision for a number.
Precisely
Method Detail
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.

Returns
Number — Number The number that was passed in with the newly generated precision.