setFloat

fun setFloat(key: String, value: Float)

Function to set a Float value to preference

Parameters

key

String key for calling it later

value

Float value to store