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.
Figured I'd share it for fun of it.
Edit: fixed a floating point issue, all good now.
Attachement (click to open)
Archived topic from Iceteks, old topic ID:3791, old post ID:30757
bin->dec and dec->bin app
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
bin->dec and dec->bin app
Honk if you love Jesus, text if you want to meet Him!
bin->dec and dec->bin app
Neat stuff, but your programs doesn't like decimal places. Apparently, 132.42 and 392.43 both equal 1111111 in binary . 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
Archived topic from Iceteks, old topic ID:3791, old post ID:30761
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
bin->dec and dec->bin app
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
Archived topic from Iceteks, old topic ID:3791, old post ID:30771
Honk if you love Jesus, text if you want to meet Him!
bin->dec and dec->bin app
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
Archived topic from Iceteks, old topic ID:3791, old post ID:30774
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
bin->dec and dec->bin app
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
Archived topic from Iceteks, old topic ID:3791, old post ID:30775
Honk if you love Jesus, text if you want to meet Him!