The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

SPVM::Float - Float Class

Usage

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

Description

Float is the class to hold a value of the float type.

This class is automatically loaded.

Fields

value

  has value : rw float;

The value.

Class Methods

new

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

Creates a new Float object with a float $value.