Hi Mat > The question is, if I get a string which contains a mathematical > expression - how would you evaluate this and get the result? Here is one way: >> str: "3 + 4" == "3 + 4" >> either not error? try[result: do str][result]["code to handle error"] == 7 >> HTH -Larry -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
- [REBOL] Re: Evaluating a ma... Andrew Martin
- [REBOL] Re: Evaluating a ma... Gabriele Santilli
- [REBOL] Error message Graham Chiu
- [REBOL] Re: Error message Andrew Martin
- [REBOL] Re: Error message Graham Chiu
- [REBOL] Re: Error message Gabriele Santilli
- [REBOL] Changing the origin... Andrew Martin
- [REBOL] Re: Changing the or... Brett Handley
- [REBOL] Re: Changing the or... Andrew Martin
- [REBOL] Re: Changing the or... chaz
- [REBOL] Re: Evaluating a maths ... Larry Palmiter
- [REBOL] Re: Evaluating a ma... Mat Bettinson
- [REBOL] Re: Evaluating a ma... Andrew Martin
- [REBOL] Re: Evaluating a ma... Larry Palmiter
- [REBOL] Re: Evaluating a ma... Andrew Martin
- [REBOL] Re: /precise problem Andrew Martin
- [REBOL] Re: /precise problem Ryan C. Christiansen
- [REBOL] Re: /precise problem Ladislav Mecir
- [REBOL] [ANN] time-in-digits.r 1.3.0 Ryan C. Christiansen