parrotcode: Floating-point number | |
Contents | PMCs |
src/pmc/float.pmc - Floating-point number
Float
extends scalar
to provide floating-point number operations.
void init()
PMC *new_from_string(STRING *rep, INTVAL flags)
rep
.FLOATVAL get_number()
INTVAL get_integer()
INTVAL get_bool()
STRING *get_string()
STRING *get_repr()
void set_integer_native(INTVAL value)
void set_bool(INTVAL value)
void set_number_native(FLOATVAL value)
value
.void set_number_same(PMC *value)
*value
.void set_string_native(STRING *value)
*value
.String
.void set_pmc(PMC *value)
*value
.void morph(INTVAL type)
PMC *neg(PMC *dest)
void i_neg()
dest
to the negated value of SELF
.INTVAL is_equal(PMC *value)
==
operation.INTVAL cmp(PMC *value)
cmp
operation.INTVAL cmp_num(PMC *value)
*value
.void increment()
void decrement()
PMC *absolute(PMC *dest)
void i_absolute()
dest
to the absolute value of SELF.void freeze(visit_info *info)
void thaw(visit_info *info)
METHOD PMC *acos()
METHOD PMC *asec()
METHOD PMC *asin()
METHOD PMC *cos()
METHOD PMC *cosh()
METHOD PMC *exp()
METHOD PMC *ln()
METHOD PMC *log10()
METHOD PMC *log2()
METHOD PMC *sec()
METHOD PMC *sech()
METHOD PMC *sin()
METHOD PMC *sinh()
METHOD PMC *tan()
METHOD PMC *tanh()
METHOD PMC *sqrt()
SELF
with FUNC(value) of SELF.
|