The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

X3D::Values::Int32 - Storage type for 32 bit signed integers

ALIAS

X3DInt32

SYNOPSIS

  use X3D::Values::Int32;
  my $int32 = new X3D::Values::Int32(1);
  $int32++;
  my $half = 1 / $int32; # 0.5

DESCRIPTION

This module adds support for 32 bit signed integers.

CONSTANTS

MIN_INT32

        my $min_int32 = X3DInt32::MIN_INT32;

MAX_INT32

        my $max_int32 = X3DInt32::MAX_INT32;

FUNCTIONS

new(value)

        my $int32 = new X3D::Values::Int32(1234);

EXPORT

None by default.

Exports MIN_INT32 and MAX_INT32, export tag -all

        use X3D::Values::Int32 -all;
        my $min_int32 = MIN_INT32;
        my $max_int32 = MAX_INT32;

SEE ALSO

AUTHOR

Holger Seelig, hooo(at)cpan.org

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Holger Seelig

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.