logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Declare::Constraints::Simple::Library::Numerical - Numerical Constraints

Author

       Robert 'phaylon' Sedlacek "<phaylon@dunkelheit.at>"

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.

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;

See Also