Mathcad syntax
Mathcad syntax
(OP)
Why does MathCAD recognize .2.12 as 12? I accidently defined a variable as .2.12 and MathCAD didn't recognize that it was a typo. Instead of defining the variable as the desired 2.12 it used 12 and it took me a few hours to find the mistake. After i realized this i was playing around with it and found that whenever you type a period then a number then another period and number mathcad evaluates it as the second number. Any ideas?





RE: Mathcad syntax
Cheers
Greg Locock
SIG:Please see FAQ731-376: Eng-Tips.com Forum Policies for tips on how to make the best use of Eng-Tips.
RE: Mathcad syntax
any number of decimal points are allowable within the 'bug', so x:=....12 will give x=12 as will x:=.2.12 or x:= .1.2.012
Definately some sort of parsing bug probably because you can have a literal subscript (used a dot) in a variable and the same dot in a number.
It's still a bug.
Philip
RE: Mathcad syntax
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Mathcad syntax
RE: Mathcad syntax
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Mathcad syntax
RE: Mathcad syntax
RE: Mathcad syntax
TTFN
FAQ731-376: Eng-Tips.com Forum Policies