Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2013-01-05 22:51:57

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Binary Converter - Leading Zeros

Here is a TEST version of the Binary/Decimal/Hexadecimal Converter

I have added a button (top left) which formats the binary with leading zeros (and fractional part with trailing zeros) ... 4 at a time to match a hex digit.

What do you think? Can you throw different examples at it to see if it works fine (before I make it live).


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#2 2013-01-05 23:24:25

Bob
Administrator
Registered: 2010-06-20
Posts: 10,619

Re: Binary Converter - Leading Zeros

hi MathsIsFun

Yes, that works ok for me.

The leading/trailing zeros feature is really good.  Any chance of a small gap between each group of 4 to make it easier to read?

Bob


Children are not defined by school ...........The Fonz
You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you!  …………….Bob smile

Offline

#3 2013-01-06 00:34:08

Jai Ganesh
Administrator
Registered: 2005-06-28
Posts: 48,385

Re: Binary Converter - Leading Zeros

Hi MathsIsFun,

The Binary/Decimal/Hexadecimal Converter works fine for me too!

I checked the Base 2/10/16 numbers 1, 11, 111, 1111 and found correct.


It appears to me that if one wants to make progress in mathematics, one should study the masters and not the pupils. - Niels Henrik Abel.

Nothing is better than reading and gaining more and more knowledge - Stephen William Hawking.

Offline

#4 2013-01-06 04:04:32

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Binary Converter - Leading Zeros

Hi;

Worked well here. Could use larger input boxes.


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.

Offline

#5 2013-01-06 08:10:09

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Binary Converter - Leading Zeros

Thanks guys!


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#6 2013-01-07 06:20:07

noelevans
Member
Registered: 2012-07-20
Posts: 236

Re: Binary Converter - Leading Zeros

Thanks!  Works great!  Handles enough digits to do my bank account in binary smile

How hard would it be to allow the user to input a base of their own choosing?

Have a great day!


Writing "pretty" math (two dimensional) is easier to read and grasp than LaTex (one dimensional).
LaTex is like painting on many strips of paper and then stacking them to see what picture they make.

Offline

#7 2013-01-07 10:52:36

muxdemux
Member
Registered: 2012-12-23
Posts: 80

Re: Binary Converter - Leading Zeros

Seems pretty good to me. I think it might be a good idea to restrict the range of the numbers so they always fit properly in their boxes. Other than that I can't complain.

Just out of curiosity, why haven't you written this in JS/HTML instead of flash? (I'm not suggesting that you do, I'm just curious).

Offline

#8 2013-01-07 22:20:17

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Binary Converter - Leading Zeros

muxdemux: I simply love programming in Actionscript 3. It is responsive, reliable and each app is self-contained, so library changes don't impact on other live apps.

Glad you all approve, I have made it the live version now.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#9 2013-01-10 13:31:28

Mathegocart
Member
Registered: 2012-04-29
Posts: 2,226

Re: Binary Converter - Leading Zeros

! really good.


The integral of hope is reality.
May bobbym have a wonderful time in the pearly gates of heaven.
He will be sorely missed.

Offline

#10 2013-01-10 13:33:26

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Binary Converter - Leading Zeros

Hi MIF

How did you learn to write in ActionScript?


“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 Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#11 2013-01-10 18:57:18

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Binary Converter - Leading Zeros

I downloaded FlashDevelop and got stuck into it (plus lots of Googling).


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#12 2013-03-18 09:16:49

Mathegocart
Member
Registered: 2012-04-29
Posts: 2,226

Re: Binary Converter - Leading Zeros

MathsIsFun wrote:

I downloaded FlashDevelop and got stuck into it (plus lots of Googling).

Hard WORK!


The integral of hope is reality.
May bobbym have a wonderful time in the pearly gates of heaven.
He will be sorely missed.

Offline

#13 2013-03-25 13:37:43

mathaholic
Member
From: Earth
Registered: 2012-11-29
Posts: 3,251

Re: Binary Converter - Leading Zeros

Harder work than the hardest work of all. smile


Mathaholic | 10th most active poster | Maker of the 350,000th post | Person | rrr's classmate
smile

Offline

Board footer

Powered by FluxBB