Decimal to Binary Representation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Decimal to Binary Representation
Hiya,
I have searched all of the functions in mathcad 15 but there is no function defined which could
convert a decimal to binary numbers. Kindly can anyone provide some guidance about the
subjected problem.
Regards and Thanks.
Solved! Go to Solution.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
if you need to manipulate the bits of a nember then it becomes a little more difficult,
You will need the start writing subroutines to change the way that mathcad store the data.
Attached are 2 examples that you can use to create binary vectors from a decimal number and convert back again.
The built in logic elements can be used, but you may have to force the size of the vector to match to clear one possible error.
Regards
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
select the result to display in binary,
then the menu "format", "result"
You should get a pop-up menu like this
Select the "Display Options" tab
And change the radix from decimal to binary, options for octal & hexadecimal also exist.
Regards
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Thanks for your reply, but this technique only display the decimal number to binary.
I want to use the decimal number in binary form for further computations.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
if you need to manipulate the bits of a nember then it becomes a little more difficult,
You will need the start writing subroutines to change the way that mathcad store the data.
Attached are 2 examples that you can use to create binary vectors from a decimal number and convert back again.
The built in logic elements can be used, but you may have to force the size of the vector to match to clear one possible error.
Regards
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks alot, I also found one way, below is the image.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try Mathcad on-line calculation please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You may be interested in this thread: http://communities.ptc.com/message/192232#192232
