getNumber

fun getNumber(key: String): Number?

Gets a property's value as a Number. Returns null if the value doesn't exist, or its value is not a Number.

Return

the Number or nil.

Parameters

key

the key