API / geotoolkit / util / Units / Units
This utility class provides functions used to convert units to number
Constructors
- [new Units()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.util.units.units.md#new units())
Methods
Methods
▸ Static getNumber(value, maxValue?, defaultValue?): number
Return number from value
| Name | Type | Description |
|---|---|---|
value | string | number | value as absolute or percentage value from maxValue |
Optional maxValue | number | maximum value |
Optional defaultValue | number | default value if val is null |
number