Page 1 of 1

bin->dec and dec->bin app

Posted: Mon Oct 03, 2005 10:06 pm
by Red Squirrel
I wanted to make it faster to do all the binary conversion homework I had so I wrote a program that does it for me and shows the work. :P

Figured I'd share it for fun of it.

Edit: fixed a floating point issue, all good now. :D

Attachement (click to open)

Archived topic from Iceteks, old topic ID:3791, old post ID:30757

bin->dec and dec->bin app

Posted: Tue Oct 04, 2005 12:11 am
by Death
Neat stuff, but your programs doesn't like decimal places. Apparently, 132.42 and 392.43 both equal 1111111 in binary :P. I'm guessing you fixed that with the floating point number issue but forgot to repost the new attachment?

Archived topic from Iceteks, old topic ID:3791, old post ID:30761

bin->dec and dec->bin app

Posted: Tue Oct 04, 2005 8:45 am
by Red Squirrel
Oh it's not even suppost to support that, the floating point issue was that big numbers got written out in scientific notation but when I fixed that then it showed .000000 so I fixed that too. The . probably causes it to return some weird number or something.

Archived topic from Iceteks, old topic ID:3791, old post ID:30771

bin->dec and dec->bin app

Posted: Tue Oct 04, 2005 12:16 pm
by jellyfish
I had to learn Binary at uni today, they don't let us use calculators or anything like that...have an exam in it on monday apparently (it does actually count towards my final degree).

Archived topic from Iceteks, old topic ID:3791, old post ID:30774

bin->dec and dec->bin app

Posted: Tue Oct 04, 2005 1:58 pm
by Red Squirrel
Yeah we have to be able to do it too without any type of tools. personally I don't see the point of that since in real world you have access to base converters and such.

Archived topic from Iceteks, old topic ID:3791, old post ID:30775