Number

  • Number()

Validates if the input is a number.

v::number()->validate(42); // true
v::number()->validate(acos(8)); // false

"In computing, NaN, standing for not a number, is a numeric data type value representing an undefined or unrepresentable value, especially in floating-point calculations." Wikipedia

Categorization

  • Numbers

Changelog

Version Description
2.0.0 Created

See also: