Name
SPVM::Float - Float object
Usage
use Float;
my $float_object = Float->new(0.25f);
my $float_value = $float_object->value;
Description
Float object stores a float
value.
This object is immutable and its value cannot be changed.
Float is automatically loaded just after the program starts.
Class Methods
new
static method new : Float ($value : float)
Create a new Float object with a float
value.
Instance Methods
value
method value : float ()
Get a float
value.