Skip to main content
21-Topaz II
June 22, 2020
Solved

C and F Hexadecimal

  • June 22, 2020
  • 2 replies
  • 2071 views

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

Best answer by StuartBruff
Spoiler
 

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

 

Stuart

2 replies

23-Emerald V
June 22, 2020
Spoiler
 

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

 

Stuart

25-Diamond I
June 22, 2020

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 IIAuthor
21-Topaz II
June 23, 2020

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