3.15.2.8.1. Fixed Class Example
class Fixed
{
public:
// Constructors
Fixed (Long val);
Fixed (ULong val);
Fixed (LongLong val);
Fixed (ULongLong val);
...
Fixed (const char *);
// Conversions
operator LongLong () const;
operator LongDouble () const;
Fixed round (UShort scale) const;
Fixed truncate (UShort scale) const;
// Operators
Fixed &operator = (const Fixed &val);
Fixed &operator += (const Fixed &val);
Fixed &operator -= (const Fixed &val);
...
}
Fixed operator + (const Fixed &val1, const Fixed &val2);
Fixed operator - (const Fixed &val1, const Fixed &val2);
...