futil namespace |
|
OverviewDeclared in "futil.h" futil namespace has eight functions for floating-point operations.
namespace futil { // logical comparisons: bool eq(double dLhs, double dRhs); // is dLhs == dRhs ? bool neq(double dLhs, double dRhs); // is dLhs != dRhs ? bool gt(double dLhs, double dRhs); // is dLhs > dRhs ? bool gte(double dLhs, double dRhs); // is dLhs >= dRhs ? bool lt(double dLhs, double dRhs); // is dLhs < dRhs ? bool lte(double dLhs, double dRhs); // is dLhs <= dRhs ? void round(double &dVal, int nDecimal); // round a value int nsgn(double dVal); // sign of a value } Remarks
|
|
|
|
|
|
updated: 02-Mar-2001 |