---
name: "Declare::Constraints::Simple::Library::Numerical"
section: "3pm"
platform: "linux"
package: "libdeclare-constraints-simple-perl"
version: "0.03-1.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Declare::Constraints::Simple::Library::Numerical"
---

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

Numerical Constraints

## NAME

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

## SYNOPSIS

```
  # 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.

## SEE ALSO

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

## AUTHOR

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

## LICENSE AND COPYRIGHT

This module is free software, you can redistribute it and/or modify it  under the same terms as perl itself.
