Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.41 KB

File metadata and controls

64 lines (47 loc) · 1.41 KB

FloatType

  • FloatType()

Validates whether the type of the input is float.

v::floatType()->assert(1.5);
// Validation passes successfully

v::floatType()->assert('1.5');
// → "1.5" must be float

v::floatType()->assert(0e5);
// Validation passes successfully

Templates

FloatType::TEMPLATE_STANDARD

Mode Template
default {{subject}} must be float
inverted {{subject}} must not be float

Template placeholders

Placeholder Description
subject The validated input or the custom validator name (if specified).

Categorization

  • Numbers
  • Types

Changelog

Version Description
1.0.0 Created

See Also