Re: Numbers

You don't need a calculator for that.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Numbers

The way I do it is by making a little table of powers of 2.

2^0 = 12^1 = 22^2 = 42^3 = 82^4 = 162^5 = 322^6 = 642^7 = 128

Now supposing we want to change 105 from binary to decimal. We get the closest power of 2 that is smaller or equal. We see in the above chart that it is 2^6 = 64. So put a 1 and subtract 105 - 64 = 41.

Now just go down the line does 2^5 fit in 41? Yes it does so add a 1 next to that 1.

11 and say 41 - 32 = 9

2^4 is larger than 9 so put a 0 next to that 1.

110

2^3 is smaller than 9 so put a 1

1101 and say 9 - 8 = 1

2^2 is larger than 1 so put a 0

11010

2^1 is larger than 1 so put a 0

110100

2^0 is exactly equal to 1 so put a 1

1101001 and say 1 - 1 = 0

We are done.

105 = 1101001 in binary

In mathematics, you don't understand things. You just get used to them.If it ain't broke, fix it until it is. Always satisfy the Prime Directive of getting the right answer above all else.

Re: Numbers

What is the Indian way?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.''God exists because Mathematics is consistent, and the devil exists because we cannot prove it'I'm not crazy, my mother had me tested.

Re: Numbers

You or him what?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.''God exists because Mathematics is consistent, and the devil exists because we cannot prove it'I'm not crazy, my mother had me tested.

Re: Numbers

Anybody who can answer will do

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.''God exists because Mathematics is consistent, and the devil exists because we cannot prove it'I'm not crazy, my mother had me tested.

Re: Numbers

No, I do not know the Indian way to convert Decimal to Binary. What is it?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.''God exists because Mathematics is consistent, and the devil exists because we cannot prove it'I'm not crazy, my mother had me tested.

Re: Numbers

I am an Indian. I can usually convert small numbers inside my head. If the numbers are large, I use a computer.

I also have an awesome wiki on bit hacks. Have you seen it?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.''God exists because Mathematics is consistent, and the devil exists because we cannot prove it'I'm not crazy, my mother had me tested.

Re: Numbers

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.''God exists because Mathematics is consistent, and the devil exists because we cannot prove it'I'm not crazy, my mother had me tested.

Re: Numbers

Thanks!

Have you seen my wiki page on binary heap?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.''God exists because Mathematics is consistent, and the devil exists because we cannot prove it'I'm not crazy, my mother had me tested.