CPP02 1.0
|
Header file for the Fixed class representing fixed-point numbers with constructors for integer and float, conversion methods, and output stream operator. [詳解]
#include <iostream>
クラス | |
class | Fixed |
ex00 Fixed Class [詳解] | |
関数 | |
std::ostream & | operator<< (std::ostream &o, const Fixed &fixed) |
Overloads the output stream operator to insert the float representation of the fixed-point number into the output stream. | |
Header file for the Fixed class representing fixed-point numbers with constructors for integer and float, conversion methods, and output stream operator.
This class provides a representation for fixed-point numbers using an internal integer and a static constant for the number of fractional bits. It includes constructors to initialize from integers and floating-point numbers, the Orthodox Canonical Form members, methods to access and modify the raw bit representation, and methods to convert to float and int. It also declares the overloaded output stream operator.
Fixed.hpp に定義があります。
std::ostream & operator<< | ( | std::ostream & | o, |
const Fixed & | fixed | ||
) |
Overloads the output stream operator to insert the float representation of the fixed-point number into the output stream.
o | The output stream object. |
fixed | The Fixed object to insert. |
< [add_overload_insertion] [add_overload_insertion]