|
amath
1.8.5
Simple command line calculator
|
#include <ntextd.h>


Public Member Functions | |
| DecimalSystem () | |
| DecimalSystem (unsigned int digits) | |
| DecimalSystem (unsigned int digits, const char fractionPoint) | |
| ~DecimalSystem () | |
| virtual const char * | GetText (Number *number) |
Public Member Functions inherited from PositionalNumeralSystem | |
| PositionalNumeralSystem (unsigned int base, unsigned int digits, const char fractionPoint) | |
| ~PositionalNumeralSystem () | |
| virtual const char * | GetName () |
| virtual const char * | GetPrefix () |
| virtual unsigned int | GetDigits () |
| virtual void | SetDigits (unsigned int digits) |
| virtual const char | GetFractionPoint () |
| virtual void | SetFractionPoint (const char fractionPoint) |
| virtual Number * | Parse (const char *text, unsigned int *length, char **end) |
Public Member Functions inherited from NumeralSystem | |
| NumeralSystem () | |
| virtual | ~NumeralSystem () |
| virtual Number * | Parse (const char *text) |
Private Member Functions | |
| const char * | GetText (double number) const |
Additional Inherited Members | |
Protected Member Functions inherited from PositionalNumeralSystem | |
| const char * | GetSpecialCase (Number *number) |
| void | IntegerToBuffer (double value, unsigned int digits, int *outdigits) const |
Protected Attributes inherited from PositionalNumeralSystem | |
| double | baseDouble |
| unsigned int | digits |
| char | fractionPoint |
Protected Attributes inherited from NumeralSystem | |
| CharBuffer * | buf |
| DecimalSystem::DecimalSystem | ( | ) |
Definition at line 62 of file ntextd.cpp.
References PositionalNumeralSystem::PositionalNumeralSystem().

| DecimalSystem::DecimalSystem | ( | unsigned int | digits | ) |
Definition at line 66 of file ntextd.cpp.
References PositionalNumeralSystem::PositionalNumeralSystem().
Referenced by PlotStatement::Execute(), MemoryStatement::Execute(), DigitsStatement::Execute(), PreferencesBase::GetDescription(), PositionalNumeralSystem::GetName(), Parser::ParseDigistStatement(), and Parser::ParseNumeralStatement().


| DecimalSystem::DecimalSystem | ( | unsigned int | digits, |
| const char | fractionPoint | ||
| ) |
Definition at line 71 of file ntextd.cpp.
References PositionalNumeralSystem::PositionalNumeralSystem().
Referenced by Program::NewPositionalInput(), Program::NewPositionalOutput(), and Program::Program().


| DecimalSystem::~DecimalSystem | ( | ) |
Definition at line 76 of file ntextd.cpp.
|
virtual |
Reimplemented from PositionalNumeralSystem.
Definition at line 80 of file ntextd.cpp.
References CharBuffer::Append(), NumeralSystem::buf, cimag(), creal(), CharBuffer::Empty(), ComplexNumber::GetComplexValue(), Number::GetRealValue(), PositionalNumeralSystem::GetSpecialCase(), CharBuffer::GetString(), GetText(), nsysreal, and Number::system.

|
private |
Definition at line 118 of file ntextd.cpp.
References CharBuffer::Append(), NumeralSystem::buf, CharBuffer::Contains(), CutoffMode_FractionLength, CutoffMode_TotalLength, PositionalNumeralSystem::digits, Dragon4(), CharBuffer::EnsureGrowth(), fabs(), FloatUnion64::floatingPoint, PositionalNumeralSystem::fractionPoint, FloatUnion64::GetExponent(), FloatUnion64::GetMantissa(), CharBuffer::GetString(), PositionalNumeralSystem::IntegerToBuffer(), FloatUnion64::IsNegative(), log10(), log2i(), MemCopy(), CharBuffer::RemoveTrailing(), and trunc().
Referenced by GetText().

