Name

SPVM::Double - Double object

Usage

use Double;

my $double_object = Double->new(0.25);
my $double_value = $double_object->value;

Description

Double object stores a double value.

This object is immutable and its value cannot be changed.

Double is automatically loaded just after the program starts.

Class Methods

new

static method new : Double ($value : double)

Create a new Double object with a double value.

Instance Methods

value

method value : double ()

Get a double value.