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.

Fields

value

has value : ro float;

The value.

Class Methods

new

static method new : Float ($value : float)

Create a new Float object with a float value.