Skip to main content

Float

Check if the input value is a float number.

The validation rule requires a value to run.

If the input's value is an integer, the validation will fail.

If you want to validate against the value either an integer or a float, use the number validation rule.

Example

src/app/users/controllers/create-account.ts
// ...
createAccount.validation = {
rules: {
height: ["required", "float"],
},
};