16 static sf24 create_from_data(
unsigned int data);
32 sf24(
short x,
unsigned char frac);
49 sf24 operator + (
const sf24& b)
const;
50 sf24 operator - (
const sf24& b)
const;
51 sf24 operator * (
const sf24& b)
const;
53 sf24 operator -()
const;
67 explicit operator int()
const;
78 explicit operator short()
const;
80 bool operator < (
const sf24& b)
const;
81 bool operator > (
const sf24& b)
const;
82 bool operator <= (
const sf24& b)
const;
83 bool operator >= (
const sf24& b)
const;
84 bool operator == (
const sf24& b)
const;
85 bool operator != (
const sf24& b)
const;
96 char* to_string()
const;
24-bit (16.8) signed fixed floating point number
Definition: sf24.hpp:13
short get_int() const
Gets integral part of number.
unsigned char get_frac() const
Gets fractional part of number.
sf24(short x)
Implicit s16 to sf24 conversion.
bool in_range(const sf24 &min, const sf24 &max) const
Checks if the number belongs to an interval.
sf24(short x, unsigned char frac)
Builds a signed fixed number from its separate integral and fractional part.