Math::Expr::Num - Represents one number in a parsed expression tree
require Math::Expr::Opp; require Math::Expr::Var; require Math::Expr::Num; # To represent the expression "x+7": $n=new Math::Expr::Opp("+"); $n->SetOpp(0,new Math::Expr::Var("x")); $n->SetOpp(1,new Math::Expr::Num(7)); print $n->tostr . "\n";
Used by the Math::Expr to represent numbers.
Creates a new representation of the number $num.
Returns the string representation of the number which in perl is the same as the number itsefle
Returns a new copy of itself.
Hakan Ardo <hakan@debian.org>
L<Math::Expr::Opp>
To install Math::Expr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Expr
CPAN shell
perl -MCPAN -e shell install Math::Expr
For more information on module installation, please visit the detailed CPAN module installation guide.