Clownfish::Integer - Immutable 64-bit signed integer.
my $integer = Clownfish::Integer->new(7); my $value = $integer->get_value;
my $integer = Clownfish::Integer->new($value);
Return a new Integer.
my $int = $integer->get_value();
Return the value of the Integer.
my $float = $integer->to_f64();
Convert the Integer to floating point.
my $int = $integer->compare_to($other);
Indicate whether one number is less than,
equal to,
or greater than another.
Throws an exception if other
is neither an Integer nor a Float.
Returns: 0 if the numbers are equal,
a negative number if self
is less than other
,
and a positive number if self
is greater than other
.
my $result = $integer->clone();
Return a clone of the object.
Clownfish::Integer isa Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.