Name

SPVM::Double - A double value as An Object

Description

The Double class in SPVM represents a double value as an object.

Usage

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

Details

This class is immutable.

This class is automatically loaded.

Fields

value

has value : ro double;

The value.

Class Methods

new

static method new : Double ($value : double);

Creates a new Double object with a double $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License