??? 06/12/04 03:01 Read: times |
#72406 - RE: Division Responding to: ???'s previous message |
"presumably there is some underlying problem "
Expecting a valid integer result after dividing an 8 bit number by a 16 bit number ! Ravi : Your answer in BCD is 0.28515. Thus to get a valid integer result to the first decimal you have to multiply 49H by 0AH and divide the product by 100H. If you want the result to two decimals multiply 49H by 64H and divide the product by 100H. And if you want the result to three decim.... OK OK I stop there since you got the point. PS: The decimal if for human consumption- the MCU could'nt care less about it. So how you handle the quotient will depend on what you want to do with it further. Raghu |
Topic | Author | Date |
Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division | 01/01/70 00:00 | |
RE: Division![]() | 01/01/70 00:00 |