how to convert real number to 32-bit IEEE format?

convert real number to 32-bit IEEE binar

Page 1 of 1

6 Replies - 8017 Views - Last Post: 31 October 2005 - 12:48 PM Rate Topic: -----

#1 respect  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 30-October 05

how to convert real number to 32-bit IEEE format?

Posted 30 October 2005 - 12:41 PM

i want to convert real number to 32-bit IEEE binary format in C++ ? plz help me in finding the codes as fast as u can
Is This A Good Question/Topic? 0
  • +

Replies To: how to convert real number to 32-bit IEEE format?

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 250
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: how to convert real number to 32-bit IEEE format?

Posted 30 October 2005 - 01:31 PM

Click
Was This Post Helpful? 0
  • +
  • -

#3 amos  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 146
  • Joined: 17-April 05

Re: how to convert real number to 32-bit IEEE format?

Posted 30 October 2005 - 02:13 PM

Amadeus, on Oct 30 2005, 09:28 PM, said:


Are you sure he doesn't mean floating point? As he does mention real numbers instead of integers and "32-bit IEEE binary format" seems to return lots of hits for floating point on Google.

Although I suppose your link is a starting point for respect's homework. :P

Cheers
Amos
Was This Post Helpful? 0
  • +
  • -

#4 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 250
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: how to convert real number to 32-bit IEEE format?

Posted 30 October 2005 - 02:55 PM

Good point...I never even thought about it :) I'm so used to giving a variation of that function evertime someone asks about converting to binary that I likely gave it without even reading the full post...:)

Good catch!
Was This Post Helpful? 0
  • +
  • -

#5 respect  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 30-October 05

Re: how to convert real number to 32-bit IEEE format?

Posted 31 October 2005 - 12:28 AM

Thank u for ur help ,,, but actually as he says iam askin for conversion of floating reals +ve and negative ,, it is actually looks like
for input -6.5, the output should be.

1 10000001 101000000000000000000000
0 1 8 9 31

S = 1
E = 129
F = 1.101

Reply fast if u can ,, due time after 3 hrs :X
Was This Post Helpful? 0
  • +
  • -

#6 respect  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 30-October 05

Re: how to convert real number to 32-bit IEEE format?

Posted 31 October 2005 - 12:47 PM

Thanx for ur help any way
Was This Post Helpful? 0
  • +
  • -

#7 respect  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 30-October 05

Re: how to convert real number to 32-bit IEEE format?

Posted 31 October 2005 - 12:48 PM

nvm guys i figured out the way
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1