[Tutor] cube root

spir denis.spir at free.fr
Mon Jan 19 13:13:53 CET 2009


Do you know any common algorithm to convert decimal (in the sense of fractional) decimals (in the sense of base 10 numbers) into binaries?

123.456			--> 1111011.bbb...
and/or
123456 * 10**(-3)	--> bbb... * 2**(-bbb...)

How do python/C achieve that?

denis

------
la vida e estranya


More information about the Tutor mailing list