class FloatField(**kwargs)
[source]
- Default widget:
NumberInput
whenField.localize
isFalse
, elseTextInput
. - Empty value:
None
- Normalizes to: A Python float.
- Validates that the given value is a float. Leading and trailing whitespace is allowed, as in Python’s
float()
function. - Error message keys:
required
,invalid
,max_value
,min_value
Takes two optional arguments for validation, max_value
and min_value
. These control the range of values permitted in the field.
Please login to continue.