Skip to main content
1-Visitor
August 6, 2015
Solved

Why can't I write inches in decimal form?

  • August 6, 2015
  • 1 reply
  • 1541 views

If I use Mathcad 15, I can define a variable such as "a:= .7 in"  if I write this exact same thing in MathCad prime it will result in an error.  I have to write "a:= 7 in" then come back and add the decimal place after it's accepted 7 inches.  What am I doing wrong? This seems absurd and is incredibly frustrating.

Best answer by RichardJ

Prime is more flexible about variable names. In Mathcad 15 ".7in" is not allowed as a variable name, but it is allowed in Prime. So in Prime you have two choices. One is to adhere to good style guidelines, and type 0.7in. Since the first character is a number Mathcad recognizes 0.7 as a number, and automatically inserts the multiplication operator before "in". The second option is to type .7*in, to force the multiplication operator, in which case Mathcad recognizes .7 as a number. If you just type "a:.7in", in Prime that assigns the value of variable .7in to the variable a, but unless the variable .7in is defined you get an error.

1 reply

RichardJ19-TanzaniteAnswer
19-Tanzanite
August 6, 2015

Prime is more flexible about variable names. In Mathcad 15 ".7in" is not allowed as a variable name, but it is allowed in Prime. So in Prime you have two choices. One is to adhere to good style guidelines, and type 0.7in. Since the first character is a number Mathcad recognizes 0.7 as a number, and automatically inserts the multiplication operator before "in". The second option is to type .7*in, to force the multiplication operator, in which case Mathcad recognizes .7 as a number. If you just type "a:.7in", in Prime that assigns the value of variable .7in to the variable a, but unless the variable .7in is defined you get an error.