Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.27 KB

File metadata and controls

57 lines (42 loc) · 1.27 KB

FloatType

  • 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

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: