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

You are not logged in.

## #1 2013-01-06 21:51:57

MathsIsFun

Offline

### 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

## #2 2013-01-06 22:24:25

bob bundy
Moderator

Offline

### 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

You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei

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

ganesh
Moderator

Offline

### 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.

Character is who you are when no one is looking.

## #4 2013-01-07 03:04:32

bobbym

Offline

### 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.
Probability is the most important concept in modern science, especially as nobody has the slightest notion what it means.
90% of mathematicians do not understand 90% of currently published mathematics.

## #5 2013-01-07 07:10:09

MathsIsFun

Offline

### Re: Binary Converter - Leading Zeros

Thanks guys!

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

## #6 2013-01-08 05:20:07

noelevans
Full Member

Offline

### Re: Binary Converter - Leading Zeros

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

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.

## #7 2013-01-08 09:52:36

muxdemux
Full Member

Offline

### 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).

## #8 2013-01-08 21:20:17

MathsIsFun

Offline

### 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

## #9 2013-01-11 12:31:28

mathgogocart
Super Member

Offline

### Re: Binary Converter - Leading Zeros

! really good.

bbcode;.Uhhhhhhhhh im bored.
"Those who feed spambots are spambot conspiarators,and bad people." mathgogocart.

## #10 2013-01-11 12:33:26

anonimnystefy
Real Member

Offline

### Re: Binary Converter - Leading Zeros

Hi MIF

How did you learn to write in ActionScript?

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón

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

MathsIsFun

Offline

### 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

## #12 2013-03-19 08:16:49

mathgogocart
Super Member

Offline

### Re: Binary Converter - Leading Zeros

#### MathsIsFun wrote:

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

Hard WORK!

bbcode;.Uhhhhhhhhh im bored.
"Those who feed spambots are spambot conspiarators,and bad people." mathgogocart.

## #13 2013-03-26 12:37:43

julianthemath
Super Member

Offline

### Re: Binary Converter - Leading Zeros

Harder work than the hardest work of all.

Buy 1 for \$1, for \$0.50, for \$3, for \$2.50, for \$1.25, for \$0.25, and for \$5.