MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: IEEE 754 Standard Help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg39606] Re: IEEE 754 Standard Help
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Wed, 26 Feb 2003 02:41:21 -0500 (EST)
  • Organization: The University of Western Australia
  • References: <b3a647$1go$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <b3a647$1go$1 at smc.vnet.net>, "J Hall" <jd.hall at attbi.com> 
wrote:

> What is the decimal equivalent of the IEEE Standard 754 binary
> floating-point number
> 0 1000 0100 1001 0000 0000 0000 0000 000

  FromBinary[s_String]:=   
    FromDigits[ToExpression /@ DeleteCases[Characters[s], " "], 2]

  FromBinary["0 1000 0100 1001 0000 0000 0000 0000 000"]
  
  1112014848

Cheers,
Paul

-- 
Paul Abbott                                   Phone: +61 8 9380 2734
School of Physics, M013                         Fax: +61 8 9380 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at physics.uwa.edu.au 
AUSTRALIA                            http://physics.uwa.edu.au/~paul



  • Prev by Date: visualizing Map, Thread, Apply, etc.
  • Next by Date: Re: Re: FindMinimum
  • Previous by thread: Re: IEEE 754 Standard Help
  • Next by thread: Environment on Terminal