Name

SPVM::Float - The float Object

Description

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

This class is immutable.

This class is automatically loaded.

Usage

  my $float_object = Float->new(5);
  my $float_value = $float_object->value;

Fields

value

  has value : ro float;

The value.

Class Methods

new

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

Creates a new Float object with a float $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License