getNumber

open fun getNumber(property: String, defaultValue: Double): Double

Reads a numeric property; integers and decimals are both returned as double.

Return

the property value, or defaultValue

Parameters

property

the property name

defaultValue

the value to return when the property is absent or is not a number