Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Parsing Math Strings

by tune (Curate)
on Dec 06, 2001 at 20:19 UTC ( [id://129954]=note: print w/replies, xml ) Need Help??


in reply to Parsing Math Strings

perlfunc:eval is your friend.
$a="(1/2)*4"; print eval($a),"\n";

--
tune

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://129954]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-18 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found