This field type represents a float value.
Name | Internal name | Expected input |
---|---|---|
Float | ezfloat | float |
Table of contents:
Description
This FieldType stores numeric values which will be provided as floats.
Input expectations
Type | Example |
---|---|
float |
|
Validation
This FieldType validates if the value provided is not lower or higher than the minimum and maximum limits defined in the FieldType settings.
Settings
The field definition of this FieldType can be configured with two options:
Name | Type | Default value | Description |
---|---|---|---|
minFloatValue | float | false | This setting defines the minimum value this FieldType will allow as input. |
maxFloatValue | float | false | This setting defines the maximum value this FieldType will allow as input. |
Value object
Properties
The Value class of this field type contains the following properties:
Property | Type | Description |
---|---|---|
$value | float | This property will be used to store the value provided as a float. |
Constructor
The Float
\Value
constructor will initialize a new Value object with the value provided. It expects a numeric value with or without decimals.