mmmm... how many digits do you need?
alas, how many bytes is your number stored?
don't forget, that the microcontrollers has all it's data in binary form, it could be 8 bit integer number, 16 bit integer number, 32 bits integer, or even 32 bit float number.... (too many)
What exactly do you mean when you say converting binary to BCD? As Kurenai already said, the numbers in the microcontroller are already in binary, it is only you IDE that displays them in decimal for you?
mmmm... how many digits do you need?
alas, how many bytes is your number stored?
don't forget, that the microcontrollers has all it's data in binary form, it could be 8 bit integer number, 16 bit integer number, 32 bits integer, or even 32 bit float number.... (too many)
Actually, i have taken the 4 digit numeric input from the keyboard, that input as it is from the keyboard it is in the decimal form. like1234.
Now i want this input number to be used in the formula P=str*7.95 and get the value of P....
I m attaching my program so that you can help me out more...