Manpage logo

SPVM::Float - A float value as An Object

Name  Description  Usage  Details  Interfaces  Fields  value  Class Methods  new  Instance Methods  to_string  Copyright & License 

Name

SPVM::Float − A float value as An Object

Description

Float class in SPVM represents a float value as an object.

Usage

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

Details

This class is immutable.

This class is automatically loaded.

Interfaces

Stringable

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.

Instance Methods

to_string

"method to_string : string ();"

Casts the value to string type and returns it.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License


Updated 2026-06-01 - jenkler.se | uex.se