FloatType

  • v::floatType()

Validates whether the type of a value is float.

v::floatType()->validate(1.5); // true
v::floatType()->validate('1.5'); // false
v::floatType()->validate(0e5); // true

See also: