NAME
Math::Expr::Num - Represents one number in a parsed expression tree
SYNOPSIS
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";
DESCRIPTION
Used by the Math::Expr to represent numbers.
METHODS
$n=new Math::Expr::Num($num)
Creates a new representation of the number $num.
$n->tostr
Returns the string representation of the number which in perl is
the same as the number itsefle
$n->Copy
Returns a new copy of itself.
AUTHOR
Hakan Ardo <hakan@debian.org>
SEE ALSO
L<Math::Expr::Opp>