Raybaudi Posted July 29, 2010 Posted July 29, 2010 Interesting last two: Evaluate ( "2 + 1" ) = 3 Evaluate ( "- 2 + 1" ) = -1 Evaluate ( "+ + + 2 + + + 1" ) = 3 Evaluate ( "+ + + 2 + - + 1" ) = 1
comment Posted July 29, 2010 Posted July 29, 2010 It makes sense: minus inverts, plus doesn't. "2 + - + 1" could be rewritten as: 2 + 1 * (-1) * 1
Raybaudi Posted July 29, 2010 Author Posted July 29, 2010 Yes, I undersood the minus but I was surprised that the Evaluate ( ) worked with more signs. ( while Evaluate ( "2+1+" ) I know that doesn't work ) The surprise was coming while I made a substitution of ¶ with + in a List where there was some "¶¶"
comment Posted July 30, 2010 Posted July 30, 2010 It may seem a bit unnatural - but it's not much different from "not not 1".
Raybaudi Posted July 30, 2010 Author Posted July 30, 2010 NOW it makes sense : P.S: This is nice, too: Abs ( + + + 1 + + + - + 3 ) ( w/o any quote ) So, for the calculation engine, this is a number: + + + 1 + + + - + 3
comment Posted July 30, 2010 Posted July 30, 2010 I am not sure it's a number, but it evaluates to a number.
Recommended Posts
This topic is 5289 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now