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


Declare-Constraints-Simple documentation  | view source Contained in the Declare-Constraints-Simple distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  # test for number-conformity
  my $looks_like_number = IsNumber;

  # only integers
  my $is_int = IsInt;

DESCRIPTIONS

Top

This library contains the constraints needed to validate numerical values.

CONSTRAINTS

Top

IsNumber()

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

IsInt()

True if the value is an integer.

SEE ALSO

Top

Declare::Constraints::Simple, Declare::Constraints::Simple::Library

AUTHOR

Top

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

LICENSE AND COPYRIGHT

Top


Declare-Constraints-Simple documentation  | view source Contained in the Declare-Constraints-Simple distribution.