232 return result <= maxValue && result >= minValue ? true :
false;
248 if (temp <= maxValue && temp >= minValue)
275 return result <= maxValue && result >= minValue ? true :
false;
291 if (temp <= maxValue && temp >= minValue)
324 return result <= maxValue ? true :
false;
340 if ( temp <= maxValue )
373 return result <= maxValue ? true :
false;
389 if ( temp <= maxValue )
585 size_t index =
sizeof(buffer);
594 size_t working = (size_t)(-(
integer + 1));
601 int digit = (int)(working % 10);
602 working = working / 10;
604 buffer[--index] = digit +
'0';
612 int digit = (int)(
integer % 10) +
'0';
615 buffer[--index] = digit;
621 memcpy(dest, &buffer[index], length);
624 return length + sign;
649 size_t index =
sizeof(buffer);
657 size_t working = (size_t)(-(
integer + 1));
663 int digit = (int)(working % 10);
664 working = working / 10;
666 buffer[--index] = digit;
674 int digit = (int)(
integer % 10);
677 buffer[--index] = digit;
683 memcpy(dest, &buffer[index], length);
703 strcpy((
char *)dest,
"0");
710 size_t index =
sizeof(buffer);
715 int digit = (int)(
integer % 10) +
'0';
718 buffer[--index] = digit;
723 memcpy(dest, &buffer[index], length);
744 strcpy((
char *)dest,
"0");
751 size_t index =
sizeof(buffer);
768 int digit = (int)(working % 10);
769 working = working / 10;
771 buffer[--index] = digit +
'0';
779 int digit = (int)(
integer % 10) +
'0';
782 buffer[--index] = digit;
788 memcpy(dest, &buffer[index], length);
791 return length + sign;
816 size_t index =
sizeof(buffer);
821 int digit = (int)(
integer % 10) +
'0';
824 buffer[--index] = digit;
829 memcpy(dest, &buffer[index], length);
901 snprintf(temp,
sizeof temp,
"%p", p);
904 snprintf(temp,
sizeof temp,
"0x%p", p);
RexxInteger * new_integer(wholenumber_t v)
RexxNumberString * new_numberstringFromWholenumber(wholenumber_t n)
RexxNumberString * new_numberstringFromUint64(uint64_t n)
RexxNumberString * new_numberstringFromInt64(int64_t n)
RexxNumberString * new_numberstringFromStringsize(stringsize_t n)
bool isInteger(RexxObject *o)
RexxString * new_string(const char *s, stringsize_t l)
ssize_t integer(RexxObject *obj, const char *errorMessage)
static const wholenumber_t MIN_WHOLENUMBER
static bool objectToUintptr(RexxObject *source, uintptr_t &result)
static RexxObject * stringsizeToObject(stringsize_t v)
static const wholenumber_t MIN_EXPONENT
static size_t formatStringSize(stringsize_t integer, char *dest)
static const size_t DIGITS64
static const wholenumber_t MAX_WHOLENUMBER
static const wholenumber_t validMaxWhole[]
static RexxObject * uintptrToObject(uintptr_t v)
static RexxObject * int64Object(RexxObject *source)
static const bool DEFAULT_FORM
static const wholenumber_t MAX_EXPONENT
static NumericSettings * settings
static size_t formatUnsignedInt64(uint64_t integer, char *dest)
static bool objectToUnsignedInt64(RexxObject *o, uint64_t &result)
static size_t formatInt64(int64_t integer, char *dest)
static const size_t MAX_STRINGSIZE
static bool objectToUnsignedInteger(RexxObject *o, size_t &result, size_t max)
static bool objectToWholeNumber(RexxObject *o, wholenumber_t &result, wholenumber_t max, wholenumber_t min)
static RexxObject * int64ToObject(int64_t v)
static const bool FORM_SCIENTIFIC
static const size_t DEFAULT_FUZZ
static NumericSettings defaultSettings
static const bool FORM_ENGINEERING
static size_t normalizeWholeNumber(wholenumber_t integer, char *dest)
static bool objectToIntptr(RexxObject *source, intptr_t &result)
static RexxObject * wholenumberToObject(wholenumber_t v)
static bool objectToStringSize(RexxObject *o, stringsize_t &result, stringsize_t max)
static bool objectToSignedInteger(RexxObject *o, ssize_t &result, ssize_t max, ssize_t min)
static RexxString * pointerToString(void *)
static RexxObject * intptrToObject(intptr_t v)
static const size_t SIZE_DIGITS
static const size_t ARGUMENT_DIGITS
static size_t formatWholeNumber(wholenumber_t integer, char *dest)
static bool objectToInt64(RexxObject *o, int64_t &result)
static RexxObject * uint64ToObject(uint64_t v)
static const size_t DEFAULT_DIGITS
bool int64Value(int64_t *result, stringsize_t numDigits)
bool unsignedInt64Value(uint64_t *result, stringsize_t numDigits)
RexxNumberString * numberString()
unsigned __int64 uint64_t