Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Parsing Math Strings

by tune (Curate)
on Dec 06, 2001 at 20:19 UTC ( #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


Comment on Re: Parsing Math Strings
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2014-09-20 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (153 votes), past polls