template<int>
class Geo::Float8
8-bit floating point.
Range between 1 and 63488, scaled by 2^bias. 4 bits mantissa, 4 bits exponent
Variables
Name | Description |
---|---|
const float ms_MaxValue = ConstructFloat8(0xf, 0xf + BIAS) | The maximum value that can be represented. |
const float ms_MinValue = ConstructFloat8(0x0, 0x0 + BIAS) | The minimum value that can be represented. |
Functions
Name | Description |
---|---|
Float8() | Constructor. |
Float8(Geo::u8) | Constructor. |
Float8(float) | Constructor. |
Get() | Return the underlying representation. |
operator float() | Convert to float. |
Anchor | ||||
---|---|---|---|---|
|
Geo::Float8< BIAS >::Float8
...
public: Float8()
...
Constructor.
Anchor | ||||
---|---|---|---|---|
|
Geo::Float8< BIAS >::Float8
...
public: Float8
(
Geo::u8 value
)
...
Constructor.
Anchor | ||||
---|---|---|---|---|
|
Geo::Float8< BIAS >::Float8
...
public: Float8
(
float value
)
...
Constructor.
Anchor | ||||
---|---|---|---|---|
|
Geo::u8 Geo::Float8< BIAS >::Get
...
public: Geo::u8 Get() const
...
Return the underlying representation.
Anchor | ||||
---|---|---|---|---|
|
Geo::Float8< BIAS >::operator float
...
public: operator float() const
...
Convert to float.