NAME
Data::Integer - details of the native integer data type
SYNOPSIS
use Data::Integer qw(max_natint);
$n = max_natint;
# and other constants; see text
DESCRIPTION
This module is about the native integer numerical data type. A native integer is one of the types of datum that can appear in the numeric part of a Perl scalar. This module supplies constants describing the native integer type.
There are actually two native integer representations: signed and unsigned. Both are handled by this module.
CONSTANTS
- natint_bits
-
The width, in bits, of the native integer data type.
- min_natint
-
The minimum representable value. This is -2^(natint_bits - 1).
- max_natint
-
The maximum representable value. This is 2^natint_bits - 1.
- min_signed_natint
-
The minimum representable value in the signed representation. This is -2^(natint_bits - 1).
- max_signed_natint
-
The maximum representable value in the signed representation. This is 2^(natint_bits - 1) - 1.
- min_unsigned_natint
-
The minimum representable value in the unsigned representation. This is zero.
- max_unsigned_natint
-
The maximum representable value in the unsigned representation. This is 2^natint_bits - 1.
SEE ALSO
Data::Float, Scalar::Number, perlnumber(1)
AUTHOR
Andrew Main (Zefram) <zefram@fysh.org>
COPYRIGHT
Copyright (C) 2007 Andrew Main (Zefram) <zefram@fysh.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.