cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

C and F Hexadecimal

-MFra-
21-Topaz II

C and F Hexadecimal

In the use of hexadecimal numbering, Mathcad gives an error when I use the hexadecimal number C, which is normally a unit of measurement and also for c which is the speed of light, the same for F. What should I do to avoid falling into error ?

hexadecimal.jpg

ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald III
(To:-MFra-)

Spoiler
 

Try prefixing the expression with 0 (zero), eg 0Ch

 

Stuart

View solution in original post

3 REPLIES 3
StuartBruff
23-Emerald III
(To:-MFra-)

Spoiler
 

Try prefixing the expression with 0 (zero), eg 0Ch

 

Stuart

Werner_E
25-Diamond I
(To:-MFra-)

It has nothing to do with C being a unit. Numbers (even hex numbers) must begin with a decimal digit.

So x:=0Ch should do the job.

If you type x:=0Ch you will get an implicit multiplication symbol between 0 and C which you have to delete. Alternatively you may add the 0 only after typing Ch.

 

Werner_E_0-1592843155552.png

EDIT: I see, that Stuart has beaten me by four minutes 🙂

BTW, here is the appropriate text of the help system:

Werner_E_0-1592843634850.png

 

 

-MFra-
21-Topaz II
(To:Werner_E)

I haven't dealt with the topic for years and this is the result!

Announcements

Top Tags