CPP02 1.0
|
Implementation of the Fixed class with integer and float constructors, conversion methods, and output stream operator. [詳解]
関数 | |
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. | |
Implementation of the Fixed class with integer and float constructors, conversion methods, and output stream operator.
This file defines the member functions of the Fixed class, including constructors to initialize from integers and floating-point numbers, conversion methods to float and int, and an overloaded output stream operator to print the floating-point representation. It also includes the Orthodox Canonical Form members and raw bit access methods.
Fixed.cpp に定義があります。
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]