Last updated

API / geotoolkit / util / Units / Units

Class: Units

util.Units.Units

This utility class provides functions used to convert units to number

Table of contents

Constructors
Methods

Contents

Constructors

new Units()

new Units()

Methods

getNumber

Static getNumber(value, maxValue?, defaultValue?): number

Return number from value

Parameters

Name Type Description
valuestring | numbervalue as absolute or percentage value from maxValue
Optional maxValuenumbermaximum value
Optional defaultValuenumberdefault value if val is null

Returns

number