#include <QString>#include <QChar>#include "stdio.h"#include "fixed.h"#include "funcaux.h"Go to the source code of this file.
Functions | |
| Fixed | operator+ (Fixed x, Fixed y) |
| Fixed | operator+ (Fixed x, int y) |
| Fixed | operator/ (Fixed x, Fixed y) |
| Fixed | operator/ (Fixed x, int y) |
| Fixed | operator/ (int x, Fixed y) |
| bool | operator== (Fixed x, Fixed y) |
| bool | operator== (Fixed x, int y) |
| bool | operator== (int x, Fixed y) |
| bool | operator< (Fixed x, Fixed y) |
| bool | operator< (Fixed x, int y) |
| bool | operator< (int x, Fixed y) |
| Fixed | operator- (Fixed x) |
| Fixed | operator * (Fixed x, int y) |
| Fixed | operator * (Fixed x, Fixed y) |
| Fixed | operator- (Fixed x, Fixed y) |
| Fixed | operator- (Fixed x, int y) |
| Fixed | operator- (int x, Fixed y) |
Definition at line 287 of file fixed.cpp.
References Fixed::precision, and Fixed::value.
00287 { 00288 x.value = x.value * y.value; 00289 x.precision = x.precision + y.precision; 00290 return x; 00291 }
Definition at line 65 of file fixed.cpp.
References Fixed::equalize_precision(), and Fixed::value.
00065 { 00066 x.equalize_precision(y); 00067 x.value = x.value + y.value; 00068 return x; 00069 }
Definition at line 302 of file fixed.cpp.
References Fixed::equalize_precision(), and Fixed::value.
00302 { 00303 x.equalize_precision(y); 00304 x.value = x.value - y.value; 00305 return x; 00306 }
Definition at line 93 of file fixed.cpp.
References Fixed::precision, and Fixed::value.
00093 { 00094 x.value = x.value / y.value; 00095 x.precision += y.precision; 00096 return x; 00097 }
| bool operator< | ( | int | x, | |
| Fixed | y | |||
| ) |
| bool operator< | ( | Fixed | x, | |
| int | y | |||
| ) |
Definition at line 260 of file fixed.cpp.
References Fixed::equalize_precision(), and Fixed::value.
00260 { 00261 x.equalize_precision(y); 00262 return x.value < y.value; 00263 }
| bool operator== | ( | int | x, | |
| Fixed | y | |||
| ) |
| bool operator== | ( | Fixed | x, | |
| int | y | |||
| ) |
Definition at line 162 of file fixed.cpp.
References Fixed::equalize_precision(), and Fixed::value.
00162 { 00163 x.equalize_precision(y); 00164 return x.value == y.value; 00165 }
1.5.1