473,569 Members | 2,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: Converting between binary, decimal, hexadecimal, octal

A. Joseph wrote:
Converting between binary, decimal, hexadecimal, octal
Where can I find good tutorial on numbering system?
These are number representation systems that can be applied to or used
with integral, rational (numberator,den ominator), and 'point' numbers.

Try Wikipedia or any search engine.
I really want to know the process of converting between all the numbers.
I may soon start HLA (assemply).
There are standard algorithms for converting between representations .
See above. Good programmer calculators have these built in.

If you want to use the Python interactive interpreter, check the docs
for the various integer literals and the hex, oct, and bin functions.
Binary literals and bin are only available in 2.6 (I believe) and 3.0
(for sure).

tjr
Sep 15 '08 #1
0 3327

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3200
by: Sverre Bakke | last post by:
Hi I am using the base_convert() function to convert numbers between binary, hexadecimal, decimal, etc... It works great, but I have problems converting numbers with .'s Like this number: 15.20 decimal will be 1111 as binary...
18
22580
by: Bern | last post by:
how to specifiy a binary number in c++? hex numbers are specified by 0x prefix
15
35466
by: jaks.maths | last post by:
How to convert negative integer to hexadecimal or octal number? Ex: -568 What is the equivalent hexadecimal and octal number??
22
2272
by: QQ | last post by:
Hi I have a unsigned char array, but I need to compress it in the bit level. for instance the array is 0x91,0x92,0x93.... I need to change it into a bit stream like 10010001 10010010 10010011 .... and operate this stream bit by bit and transform it into another bit stream, and convert that bit stream into an unsigned char array. How can I...
5
5574
by: Jeff Dillon | last post by:
How might I convert a string like 10.A (in hex) to it's decimal equivalent? Basically I have an input string like ((1F.A + 3A.D) - 1F.E) and need to calculate the result. Using Reflection and dynamic compilation, I was able to create a VB.NET equivalent of the older Eval function, but it only works with decimal numbers. Any thoughts? I know...
11
10153
by: valerij | last post by:
Hi, what is the best way to hardcode into a C/C++ program binary values/constants/etc. Since: int a; a=0b0111; is wrong, how should I do it. I thought about converting them first to hexadecimal or decimal, but what if you have a long string such as:
7
19205
by: elliotng.ee | last post by:
I have a text file that contains a header 32-bit binary. For example, the text file could be: %%This is the input text %%test.txt Date: Tue Dec 26 14:03:35 2006 00000000000000001111111111111111 11111111111111111111111111111111 00000000000000000000000000000000 11111111111111110000000000000000
19
18814
by: sethukr | last post by:
Hi everybody, Can we assign binary values to an integer variable like assigning Hexadecimal values??? Thanks, Sethu
5
1792
by: curiousEngine | last post by:
Write a program to print out the integers from 40 to 127 in decimal, octal, hexadecimal and also print out the equivalent character. ************************************/ #include<iostream> using namespace std; void main(){ for (int i(40); i <= 127; i++){ cout<<"Decimal Value:"<<i;
0
7931
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7985
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6298
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5234
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3666
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.