NAME ^

src/classes/perlnum.pmc - Perl Floating-Point Number

DESCRIPTION ^

These are the vtable functions for the PerlNum base class

Methods ^

STRING *get_string()

Returns the number as a Parrot string.

void set_integer_native(INTVAL value)

void set_number_native(FLOATVAL value)

Sets the value of the number to value.

Note that if value is an integer the number morphs to a PerlInt.

void set_string_native(STRING *value)

Sets the value of the number to the value of *value.

Note that this method morphs the number into a PerlString.

void morph(INTVAL type)

Morphs the scalar to the specified type.


parrot