Camargue
|
A 64-bit fixed precision number type "implemented" as a wrapper to CCbigguy. More...
#include <fixed64.hpp>
Public Member Functions | |
Fixed64 (int i) | |
Construct from integer. | |
Fixed64 (double d) | |
double | to_d () const |
Construct from double. More... | |
Fixed64 & | operator+= (Fixed64 f) |
Plus increment. | |
Fixed64 & | operator-= (Fixed64 f) |
Minus decrement. | |
Fixed64 | ceil () const |
Integer ceiling. | |
bool | operator< (const Fixed64 &f) const |
bool | operator== (const Fixed64 &f) const |
bool | operator!= (const Fixed64 &f) const |
bool | operator> (const Fixed64 &f) const |
bool | operator<= (const Fixed64 &f) const |
bool | operator>= (const Fixed64 &f) const |
Private Attributes | |
CCbigguy | bg |
The underlying Concorde structure. | |
Friends | |
void | add_mult (Fixed64 &f, const Fixed64 &g, int m) |
A 64-bit fixed precision number type "implemented" as a wrapper to CCbigguy.
|
inline |
Construct from double.
Convert to double.