Declare::Constraints::Simple::Library::Numerical - Numerical Constraints
# test for number-conformity my $looks_like_number = IsNumber;
# only integers my $is_int = IsInt;
This library contains the constraints needed to validate numerical values.
IsNumber()True if the value is a number according to the Scalar::Util manpages
looks_like_number.
IsInt()True if the value is an integer.
the Declare::Constraints::Simple manpage, the Declare::Constraints::Simple::Library manpage
Robert 'phaylon' Sedlacek <phaylon@dunkelheit.at>
This module is free software, you can redistribute it and/or modify it under the same terms as perl itself.