parrotcode: Python Floating-Point Number | |
Contents | Dynamic PMCs |
classes/pyfloat.pmc - Python Floating-Point Number
These are the vtable functions for the PyFloat base class
PMC* "__new__"(PMC *class, PMC *source)
void add(PMC *value, PMC *dest)
*value
to the number and returns the result in *dest
.INTVAL get_integer()
PMC *get_class()
STRING *get_repr()
STRING *get_string()
FLOATVAL get_number()
INTVAL hash()
void modulus_float(FLOATVAL value, PMC *dest)
void set_number_native(FLOATVAL value)
value
.void set_string_native(STRING *value)
*value
to a number.
|