FloatType()
Validates whether the type of the input is float.
v::floatType()->isValid(1.5); // true
v::floatType()->isValid('1.5'); // false
v::floatType()->isValid(0e5); // true| Mode | Template |
|---|---|
default |
{{subject}} must be float |
inverted |
{{subject}} must not be float |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Numbers
- Types
| Version | Description |
|---|---|
| 1.0.0 | Created |
See also: