Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello,
How will look like a function or multiple functions in Mathcad Prime so that when I give it a DECimal number to convert that DECimal number into BINary, HEXAdecimal, and OCTal corresponding values? Or how to do these things in Mathcad Prime?
Case a) Input: DECimal number, Output: BINary, HEXAdecimal and OCTal corresponding values/numbers
Case b) Input: BINary number, Output: DECimal, HEXAdecimal and OCTal corresponding values/numbers
Case c) Input: HEXAdecimal number, Output: DECimal, BINary and OCTal corresponding values/numbers
Case d) Input: OCTal number, Output: DECimal, BINary and HEXAdecimal corresponding values/numbers
Like it is shown below an example for Case a):
Solved! Go to Solution.
You're right, there's an error in there that I didn't spot yet.
This one should work fine.
Success!
Luc
Similar discussions earlier:
The attached file contains conversion routines between any radix.
You can convert from decimal to binary, octal, decimal and hexadecimal, and any other combination of two, but also to radix 3, 4, 5, 6, 7, 9, 11, 12, 13, 14, 15, 17...
And it works in any version of Prime >= 4.
Success!
Luc
Why are different values between the two?
You're right, there's an error in there that I didn't spot yet.
This one should work fine.
Success!
Luc