Name

SPVM::Mutable::Float - Mutable float Object

Description

The Mutable::Float class has methods to manipulate an object that has a float value.

This class is mutable.

Usage

my $float_object = Mutable::Float->new(5);
my $float_value = $float_object->value;
$float_object->set_value(10);

Fields

value

has value : rw float;

The value.

Class Methods

new

static method new : Mutable::Float ($value : float);

Creates a new Mutable::Float object with a float $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License