parrotcode: Perl Floating-Point Number | |
Contents | PMCs |
classes/perlnum.pmc - Perl Floating-Point Number
These are the vtable functions for the PerlNum base class
void *invoke(void *next)
float
object according to 2.1.
Built-in Functions.void init()
0.0
.INTVAL get_integer()
BIGNUM *get_bignum()
NULL
.STRING *get_string()
INTVAL get_bool()
void set_integer_native(INTVAL value)
void set_number_native(FLOATVAL value)
value
.value
is an integer the number morphs to a PerlInt
.void set_number_same(PMC *value)
*value
.void set_bignum_native(BIGNUM *value)
void set_string_native(STRING *value)
*value
.PerlString
.void add(PMC *value, PMC *dest)
*value
to the number and returns the result in *dest
.void add_int(INTVAL value, PMC *dest)
value
to the number and returns the result in *dest
.void add_float(FLOATVAL value, PMC *dest)
value
to the number and returns the result in *dest
.void subtract(PMC *value, PMC *dest)
*value
from the number and returns the result in *dest
.void subtract_int(INTVAL value, PMC *dest)
value
from the number and returns the result in *dest
.void subtract_float(FLOATVAL value, PMC *dest)
value
from the number and returns the result in *dest
.void multiply(PMC *value, PMC *dest)
*value
and returns the result in *dest
.void multiply_int(INTVAL value, PMC *dest)
value
and returns the result in *dest
.void multiply_float(FLOATVAL value, PMC *dest)
value
and returns the result in *dest
.void divide(PMC *value, PMC *dest)
*value
and returns the result in *dest
.void divide_int(INTVAL value, PMC *dest)
void divide_float(FLOATVAL value, PMC *dest)
value
and returns the result in *dest
.void cmodulus(PMC *value, PMC *dest)
mod
*value
and returns the result in *dest
.void cmodulus_float(FLOATVAL value, PMC *dest)
void cmodulus_int(INTVAL value, PMC *dest)
mod
value
and returns the result in *dest
.void modulus(PMC *value, PMC *dest)
mod
*value
and returns the result in *dest
.void modulus_float(FLOATVAL value, PMC *dest)
void modulus_int(INTVAL value, PMC *dest)
mod
value
and returns the result in *dest
.void neg(PMC *dest)
dest
is true,
then the negation of the number is returned in *dest
.
Otherwise the number itself is negated.INTVAL is_equal(PMC *value)
==
operation.INTVAL cmp(PMC *value)
INTVAL cmp_num(PMC *value)
*value
.void repeat(PMC *value, PMC *dest)
void repeat_int(INTVAL value, PMC *dest)
void increment()
void decrement()
void absolute()
dest
to the absolute value of SELF.void freeze(visit_info *info)
void thaw(visit_info *info)
|