The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

Name

SPVM::Double - Double Class

Usage

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

Description

Double is the class to hold a value of the double type.

This class is automatically loaded.

Fields

value

  has value : rw double;

The value.

Class Methods

new

  static method new : Double ($value : double)

Create a new Double object with a double value.