getFloat

public Optional<Float> getFloat(String key)

Returns a float optional with an empty value if the key is not contained within the original response view.

Return

Null, if the key was not found. - If the input field was a boolean: 1.0f if True, 0.0f if False. - If the input field was a String: The length of the specified string. - If the input field was a Number Range: The selected value.

Parameters

key

The input key that holds the value of the response.