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.

Fields

value

has value : ro double;

The value.

Class Methods

new

static method new : Double ($value : double)

Create a new Double object with a double value.