getOrDefault

fun getOrDefault(key: K, defaultValue: Float): Float

Returns the value to which the specified key is mapped, or defaultValue if this map contains no mapping for the key.