| Package | com.esri.bacore |
| Interface | public interface IValueFormatter |
| Implementors | ValueFormatter |
| Method | Defined By | ||
|---|---|---|---|
formatValue(value:Number, decimals:int):String
Converts a numeric value to a string representation with the required number of digits after the decimal point. | IValueFormatter | ||
formatValueWithUnits(value:Number, decimals:int, valueType:BAValueType):String
Converts a numeric value to a string representation with the required number of digits after the decimal point
provided with units if necessary. | IValueFormatter | ||
| formatValue | () | method |
public function formatValue(value:Number, decimals:int):StringConverts a numeric value to a string representation with the required number of digits after the decimal point.
Parameters
value:Number — A numeric value to be converted.
| |
decimals:int — The number of significant digits after the decimal point.
Negative value means unknown number of digits.
|
String |
| formatValueWithUnits | () | method |
public function formatValueWithUnits(value:Number, decimals:int, valueType:BAValueType):StringConverts a numeric value to a string representation with the required number of digits after the decimal point provided with units if necessary.
Parameters
value:Number — A numeric value to be converted.
| |
decimals:int — The number of significant digits after the decimal point.
Negative value means unknown number of digits.
| |
valueType:BAValueType — Type of value.
|
String |