ali5763237 wrote: > i want to make a programme that it converts decimal to binary numbers > i know that we can use recursive functions but i have a problem if that > the decimal number is float such as 110.57 > any one can guide me in that please >
When you say binary numbers do you mean one of the IEEE floating point formats, or binary numbers "by hand?" One format stores a sign, mantissa, exponent in a certain number of bits, the format used natively by the majority of CPUs and programming languages in use today. The other is ones and zeros with a binary point, which is more like storing a number in a string except in binary. Is this homework? -- John Gaughan
