Published Wednesday, March 08, 2006 by Vurdlak | E-mail this post
Number we want to transform uses base X: we would like to transform this number into new one, that uses Y base. In this case we will use method of continuous dividing and multiplying (dividing numbers left of comma (,) with Y and multiplying numbers on the right side of comma, by Y - rational numbers). This method is best understood looking at these examples, where X = 2, and Y = 10 (binary and decimal base, B1=2, B2=10): Binary System: Base: 2 Digits: 0, 1 Example: 27 (decimal) = 11011 2 (binary)
nice work, but i dont see the code..most of us knows math, but not programming..can u give us the codes too?