This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Float Field Type¶
This Field Type stores numeric values which are provided as floats.
| Name | Internal name | Expected input |
|---|---|---|
Float |
ezfloat |
float |
PHP API Field Type¶
Input expectations¶
The Field Type expects a number as input. Both decimal and integer numbers are accepted.
| Type | Example |
|---|---|
float |
194079.572 |
int |
144 |
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. |
1 2 3 4 5 6 7 8 | |
Constructor¶
The Float\Value constructor will initialize a new Value object with the value provided. It expects a numeric value with or without decimals.
1 2 3 4 5 6 | |
Validation¶
This Field Type supports FloatValueValidator, defining maximum and minimum float value:
| Name | Type | Default value | Description |
|---|---|---|---|
minFloatValue |
float |
`null | This setting defines the minimum value this Field Type will allow as input. |
maxFloatValue |
float |
`null | This setting defines the maximum value this Field Type will allow as input. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Settings¶
This Field Type does not support settings.