30 #ifndef AMATH_NUMERAL_POSITIONAL_H 31 #define AMATH_NUMERAL_POSITIONAL_H 50 virtual void SetDigits(
unsigned int digits);
54 virtual Number*
Parse(
const char* text,
unsigned int* length,
char** end);
58 void IntegerToBuffer(
double value,
unsigned int digits,
int* outdigits)
const;
65 const char*
GetText(
double number)
const;
~PositionalNumeralSystem()
bool IsDigit(char *digit)
virtual void SetFractionPoint(const char fractionPoint)
const char * GetText(double number) const
virtual const char * GetPrefix()
PositionalNumeralSystem(unsigned int base, unsigned int digits, const char fractionPoint)
virtual const char * GetName()
void IntegerToBuffer(double value, unsigned int digits, int *outdigits) const
const char * GetSpecialCase(Number *number)
virtual const char GetFractionPoint()
virtual const char * GetText(Number *number)
Base class for all numeral systems with a positional notation.
virtual unsigned int GetDigits()
virtual Number * Parse(const char *text, unsigned int *length, char **end)
virtual void SetDigits(unsigned int digits)
Base class for all numeral systems.