To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 2638
2637  |  2639
Subject: 
Re: 8-bit floating-point number representations?
Newsgroups: 
lugnet.off-topic.geek
Date: 
Wed, 3 Jan 2001 22:45:41 GMT
Viewed: 
94 times
  
Todd Lehman wrote:

Anyone know of a good C library that efficiently implements conversion from
a processor-native 'double' floating-point precision number to some standard
form of an 8-bit floating-point number and back?  And a Perl5 library to go
with it?

Hmm, 8 bit floating point numbers can't implement a very large range of
numbers. How many bits of exponent were you planning on?

I think conversion would probably actually be pretty easy since you will
just take e bits of the exponent from the double and 8-e bits of the
rest (mantissa? gosh I haven't done math in ages). You of course should
check that the exponent is in range. I guess you might also want to
handle the case where the exponent is out of range, but the number can
still be expressed in your 8 bit float as a denormalized number, but
this only works for small numbers and you lose precision.

--
Frank Filz

-----------------------------
Work: mailto:ffilz@us.ibm.com (business only please)
Home: mailto:ffilz@mindspring.com



Message has 1 Reply:
  Re: 8-bit floating-point number representations?
 
(...) After thinking about this, I realized most compact binary floating point forms don't allow denormalized numbers. The reason is that if one assures that all numbers are normalized, the bit to the left of the decimal point is always a 1, and (...) (24 years ago, 4-Jan-01, to lugnet.off-topic.geek)

Message is in Reply To:
  8-bit floating-point number representations?
 
Anyone know of a good C library that efficiently implements conversion from a processor-native 'double' floating-point precision number to some standard form of an 8-bit floating-point number and back? And a Perl5 library to go with it? An array of (...) (24 years ago, 3-Jan-01, to lugnet.off-topic.geek)

8 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR