Declare::Constraints::Simple::Library::Numerical - Numerical Constraints
Contents
Constraints
IsNumber()
True if the value is a number according to Scalar::Utils "looks_like_number".
IsInt()
True if the value is an integer.
Descriptions
This library contains the constraints needed to validate numerical values.
License And Copyright
This module is free software, you can redistribute it and/or modify it under the same terms as perl
itself.
perl v5.32.0 2021-01-09 Declare::Constr...rary::Numerical(3pm)
Name
Declare::Constraints::Simple::Library::Numerical - Numerical Constraints
See Also
Declare::Constraints::Simple, Declare::Constraints::Simple::Library
Synopsis
# test for number-conformity
my $looks_like_number = IsNumber;
# only integers
my $is_int = IsInt;
