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

Login

Username

Password

Not registered yet?

#1 2011-07-07 03:53:53

JASU
Novice

Offline

Binary To Decimal

binary is- 0.000,000,000,001,001,01
HOW TO GET DECIMAL

#2 2011-07-07 03:57:53

bobbym
Administrator

Offline

Re: Binary To Decimal

Hi JASU;

Welcome to the forum.

- 0.000,000,000,001,001,01

Is that a minus sign in front?


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.

#3 2011-07-07 03:59:22

JASU
Novice

Offline

Re: Binary To Decimal

It Is +0.000,000,000,001,001,01

#4 2011-07-07 04:08:13

bobbym
Administrator

Offline

Re: Binary To Decimal

Hi;


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 2011-09-03 10:29:45

Shivamcoder3013
Super Member

Offline

Re: Binary To Decimal

Considering the fact that this is in the coders corner, you may want some program to do the conversion for you, so I wrote a program in C:

Last edited by Shivamcoder3013 (2011-09-03 10:30:06)


Give me a lever long enough and a fulcrum on which to place it, and I shall move the world.
-Archimedes
My maturity level depends on the people I am around.

#6 2012-03-23 00:21:00

hammana
Member

Offline

Re: Binary To Decimal

REM This program in Liberty Basic converts any numer a to any base b (I hopr it is right)
REM enter here your values of a and b
a=50109:b=10
    e=1
    while (a/b)>(b^e)
        e=e+1
        fl=fl+1
    wend
e1=e
'print e1
'stop
for e=e1 to 1 step-1
    if a>b^e then
        n=int(a/b^e)
        a=a-n*b^e
        print n;
     else
        print 0;
     end if
next e
print a

Board footer

Powered by FluxBB