Declare::Constraints::Simple::Library::Numerical(3pm)

Declare::Constraints::Simple::Library::Numerical3pm

Numerical constraints

Usage

  # test for number-conformity
  my $looks_like_number = IsNumber;
  # only integers
  my $is_int = IsInt;

Descriptions

This library contains the constraints needed to validate numerical values.

Constraints

IsNumber()

True if the value is a number according to Scalar::Utils "looks_like_number".

IsInt()

True if the value is an integer.

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10
  2. 11–13

Author

Robert 'phaylon' Sedlacek "<[email protected]>"

From libdeclare-constraints-simple-perl 0.03-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.