J
jimmij
Most of compilers have 32-bits size of float.
Is it possible to create "short float" - 16 bits?
Is it possible to create "short float" - 16 bits?
jimmij said:Most of compilers have 32-bits size of float.
Is it possible to create "short float" - 16 bits?
LR said:If you want, you could create a class that is a "short float" type,
although thats not many bits. What maximum precision and magnitude
would you want your type to have?
I don't think I've ever heard of hardware supporting a 16 bit float
type, but for all I know it exists.
Whats your reason for asking?
jimmij said:Well, I'm writing a program which operates on many variables and at some
point there is problem with shortage of memory.
Since precision doesn't
matter for me (16 bits is good enough)
> I'm looking for smaller float type.
Can you give me a hint how to build such class?
jimmij said:Most of compilers have 32-bits size of float.
Is it possible to create "short float" - 16 bits?
Most of compilers have 32-bits size of float.
Is it possible to create "short float" - 16 bits?
I don't think I've ever heard of hardware supporting a 16 bit float
type, but for all I know it exists.
Jerry said:[ ... ]
I don't think I've ever heard of hardware supporting a 16 bit float
type, but for all I know it exists.
It does -- a fair amount of semi-recent graphics hardware (e.g. nVidia
7xxx series) supported exactly this.
[ ... ]I don't think I've ever heard of hardware supporting a 16 bit float
type, but for all I know it exists.It does -- a fair amount of semi-recent graphics hardware (e.g. nVidia
7xxx series) supported exactly this.
And telephone systems use 7 (USA) or 8 (Europe) bit floating
point to digitalize voice: 1 bit sign, 3 bits exponent, and 4
bits mantissa (in Europe). With an 8 K sample rate, it gives
better fidelity than the old analog systems it replaces. I'm
also sure that there is special hardware available for at least
some operations on these types: conference calls require
addition, and decoding touch tone phones uses an FFT.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.