The name of the variable being validated - shows up in error messages.
Returns an ArrayNumberValidator for all the numbers
Optional
name: stringAsserts that the from < number < to
Optional
msg: stringNumberValidationError if it is outside or equal to those bounds
Asserts that the from <= number <= to
Optional
msg: stringNumberValidationError if it is outside those bounds
Asserts that number > n
Optional
msg: stringNumberValidationError if it is less than or equal to n
Asserts that number >= n
Optional
msg: stringNumberValidationError if it is less than n
Asserts that the number is an integer
Optional
msg: stringNumberValidationError if ths number is not an integer
Asserts that number < n
Optional
msg: stringNumberValidationError if it is greater than or equal to n
Asserts that number <= n
Optional
msg: stringNumberValidationError if it is greater than n
Asserts that the number is < 0
Optional
msg: stringNumberValidationError if the number is not negative
Asserts that the number is > 0
Optional
msg: stringNumberValidationError if the number is not positive
Specify the number to be validated
Pass a string decribing the varname to this to make the error messages make more sense in your context.
[description]
Validate numbers in a fluent fashion.
Each validator method accepts a message as the last parameter for customising the error message.
Example
Example