DIFF

class intSource

Constants 3

protected const int ZERO_PAD_SIZE = 8
Referenced by ToStringLen()

Members 1

protected static string m_ZeroPad[ZERO_PAD_SIZE] = {"", "0", "00", "000", "0000", "00000", "000000", "0000000"}
Referenced by ToStringLen()

Methods 5

proto string AsciiToString()

Converts ASCII code to string

ascii
ASCII code for convert to string.

Returns: string - Converted int.

int ascii_code = 77;
string str = ascii_code.AsciiToString();
Print(str);

>> str = 'M'
proto string ToHex()

Integer to hex (as string)

Returns: string Converted integer as hexadecimal value

int num = 10;
string s = num.ToHex();
Print(s);

>> s = '0xA'
bool InRange(int min, int max, bool inclusive_min = true, bool inclusive_max = true)

Check whether integer falls into an inclusive range

min
int low end of range
max
int high end of range

Returns: bool True if this value is withing the set range

int num = 123;
bool test = num.InRange( 100, 150 );
Print(test);

>> s = true