floating point conversion

Programming, for all ages and all languages.
Post Reply
skandalOS
Posts: 15
Joined: Mon Sep 05, 2011 12:05 pm

floating point conversion

Post by skandalOS »

hello,

I've got a question about floating numbers, I didn't find the formula how generate a floating number.

There is for example the fomula: sign*2^exp*mantisse but you can use this formula if you already have the
binary representation.

for example: 01000001101111001100110011001101 would representate 23.6 (from IEEE Converter)

but how do you calculate the binary representation please?

thnx b4
User avatar
iansjack
Member
Member
Posts: 4687
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: floating point conversion

Post by iansjack »

User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: floating point conversion

Post by Solar »

Not to forget the old standby, Wikipedia.
Every good solution is obvious once you've found it.
Post Reply