getFloat

fun getFloat(key: String, defaultValue: Float): Float

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Return

a float value, or defaultValue

Parameters

key

a String key

defaultValue

Value to return if key does not exist