The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Number::Equation - Track how a number is calculated progamically.

VERSION

Version 0.03

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

use Number::Equation;

my $foo = Number::Equation->new(42);

my $n = Number::Equation->new(42);
$n = $n - 2;
$n /= 10;
$n *= 3;
$n += 1;
my $m = 1 / $n;
print $m->equation; # (1 / ((((42 - 2) / 10) * 3) + 1)) = 0.0769230769230769

my $n = Number::Equation->new(42, .01);
$n = $n - 2;
$n /= 10;
$n *= 3;
$n += 1;
my $m = 1 / $n;
print $m->equation; # (1 / ((((42 - 2) / 10) * 3) + 1)) ≈ 0.08

my $n = Number::Equation->new(211, 0);
$n = $n ** 2;
print $n->equation; # (211 ** 2) = 44521
$n = $n % 2;
print $n->equation; # ((211 ** 2) % 7) = 1

BETA: currently only add, subtract, multiply and divide operations are supported.

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-number-equation at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Number-Equation. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Number::Equation

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2022 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

1 POD Error

The following errors were encountered while parsing the POD:

Around line 148:

Non-ASCII character seen before =encoding in '≈'. Assuming UTF-8