Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 21st May 2008, 07:16 PM   (permalink)
Default finding the range of floating point question..

a number of 36 bits with the representation of a floating point has 8 bits plus the sign bit for the exponent and 26 bits plus a sign bit for "mantissa"(what is that??)
the mantissa is normalized(whats normalized mantissa??)
the exponent and the mantissa numbers are represented by a sign bit
and the absolute value.

what is the biggest and the smallest number we can represent in this way excluding zero??


i read the articles on floating point
i understand that there is the integer part the mantissa part which is the fracture or all the letters before the point.

plus there is the exponent (10^x)which can move the point in our number.

i have trouble to image this number and how looks this exponent
how looks this whole thing
so i could see what its maximal range
???
transgalactic is offline   Reply With Quote
Old 22nd May 2008, 04:41 PM   (permalink)
Default

The mantissa contains the significant bits of the number.

Normalizing the mantissa means adjusting it so that its leftmost bit is nonzero.

The exponent determines the binary point location starting from the right of the left-most bit.

8-bits for the exponent would mean the maximum exponent value would be 255d.

26-bits for the mantissa means the mantissa would have a maximum value of 67108864d.

For example, the number Pi rounded to 24 bits is 11.001001000011111101101. In binary single-precision (24-bit) floating-point, this is represented as mantissa = 110010010000111111011011 with exponent = 1 (see Floating point - Wikipedia, the free encyclopedia)
crutschow is offline   Reply With Quote
Old 23rd May 2008, 06:10 PM   (permalink)
Default ??

so what is the greates number i can represent, using this notation?
transgalactic is offline   Reply With Quote
Old 23rd May 2008, 07:58 PM   (permalink)
Default i cant figure this out

i cant imagine the range of the numbers
the extreme numbers
on the ends


?????????
transgalactic is offline   Reply With Quote
Old 23rd May 2008, 10:00 PM   (permalink)
Default

Quote:
Originally Posted by transgalactic View Post
so what is the greates number i can represent, using this notation?
In binary it would be 1.111111111111111111111111 with 230 zeros or approximately 57.9e75 in decimal.
crutschow is offline   Reply With Quote
Old 24th May 2008, 05:18 AM   (permalink)
Default ineed to find

the range

the smallest number and the biggest number
transgalactic is offline   Reply With Quote
Old 24th May 2008, 05:49 AM   (permalink)
Default

The biggest positive number is
182,687,701,944,103,929,407,952,896,382,538,518,00 2,845,876,224.

That is 26 ones followed by 255 zeros converted to decimal.

The biggest number is,
-182,687,701,944,103,929,407,952,896,382,538,518,00 2,845,876,225.

This represents the above number negated and is bigger in magnitude.

Mike.
Edit, why is the BBS software inserting a random space in my numbers?

Last edited by Pommie; 24th May 2008 at 05:50 AM.
Pommie is offline   Reply With Quote
Old 24th May 2008, 06:46 AM   (permalink)
Default

I was wrong in the previous post. Crutschow was correct but I get 26 ones followed by 230 zeros to be,
22,300,744,866,223,624,195,306,750,046,696,596,435 ,894,272
Out by a factor of two but I don't know why and don't have time to investigate now.

Mike.
Pommie is offline   Reply With Quote
Old 24th May 2008, 07:34 AM   (permalink)
Default

Ignore my previous two post. I got the numbers completely wrong.

With the severly restricted edit facilities, there is going to be a lot of garbage posts like my two previous.

Mike.
Pommie is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Divide by 6 using C and avoiding floating point? blueroomelectronics Math and Physics 12 8th April 2008 06:25 AM
floating point gondu Micro Controllers 1 9th January 2008 02:10 PM
Floating Point math. Voltboy Micro Controllers 3 28th November 2007 05:36 AM
Can PIC16F877 do floating point math? stevenlkz Micro Controllers 5 12th June 2005 04:59 PM
Floating-Point Multiplier elvis.merida Electronic Projects Design/Ideas/Reviews 11 29th February 2004 07:15 AM



All times are GMT. The time now is 11:26 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.