×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Mathcad syntax

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

It happenes in V14 M020.
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

V13 also does this.

RE: Mathcad syntax

I wouldn't expect it to be an XML thing specifically, but V12 was 'a bit of a dog'. They re-wrote much of the internal engine! I'm suprised it hasn't been spotted & reported before.

RE: Mathcad syntax

(OP)
I'm using version 14

RE: Mathcad syntax

It's not an XML issue, per se, but starting with v12, the revamping was also driven by the desire to use XML file format instead of the binary format.  This most likely resulted in changes to the parsing routines.
 

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources