number_convert functions
All callable symbols documented in this include, grouped by declaration type.
Stocks
| Name | Signature |
|---|---|
| BinaryToDecimal | stock BinaryToDecimal( const szBinary[ ] ) stock DecimalToBinary( const iDecimal, szBinary[ ], const iBinaryLen ) stock BinaryToHex( const szBinary[ ], szHexResult[ ], const iHexLen ) stock HexToBinary( const szHex[ ], szBinaryResult[ ], const iBinaryLen ) // Retrives digits from a given value and returns the number of digits // // @param iValue - The value from which to get the digits // @param iDigits[ ] - The array to store the digits in (optional) // @param iDigitSize - The size of the array (optional) // @param iBase - The base of the number to find digits by (default is 10 for base 10 (decimal)) (optional) // @param bKeepDigitOrder - Decides to start from the right side of the decimal or left (default is false) (optional) (see post for more details) // // @return The total number of digits found // stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > #if cellbits == 32 #define MAX_DECIMAL_DIGITS 10 #define MAX_BINARY_DIGITS 31 #define MAX_HEXADECIMAL_DIGITS 8 |
| BinaryToDecimal | stock BinaryToDecimal( const szBinary[ ] ) { |
| BinaryToHex | stock BinaryToHex( const szBinary[ ], szHexResult[ ], const iHexLen ) stock HexToBinary( const szHex[ ], szBinaryResult[ ], const iBinaryLen ) // Retrives digits from a given value and returns the number of digits // // @param iValue - The value from which to get the digits // @param iDigits[ ] - The array to store the digits in (optional) // @param iDigitSize - The size of the array (optional) // @param iBase - The base of the number to find digits by (default is 10 for base 10 (decimal)) (optional) // @param bKeepDigitOrder - Decides to start from the right side of the decimal or left (default is false) (optional) (see post for more details) // // @return The total number of digits found // stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > #if cellbits == 32 #define MAX_DECIMAL_DIGITS 10 #define MAX_BINARY_DIGITS 31 #define MAX_HEXADECIMAL_DIGITS 8 #else #define MAX_DECIMAL_DIGITS 19 #define MAX_BINARY_DIGITS 63 #define MAX_HEXADECIMAL_DIGITS 16 |
| BinaryToHex | stock BinaryToHex( const szBinary[ ], szHexResult[ ], const iHexLen ) { |
| DecimalToBinary | stock DecimalToBinary( const iDecimal, szBinary[ ], const iBinaryLen ) stock BinaryToHex( const szBinary[ ], szHexResult[ ], const iHexLen ) stock HexToBinary( const szHex[ ], szBinaryResult[ ], const iBinaryLen ) // Retrives digits from a given value and returns the number of digits // // @param iValue - The value from which to get the digits // @param iDigits[ ] - The array to store the digits in (optional) // @param iDigitSize - The size of the array (optional) // @param iBase - The base of the number to find digits by (default is 10 for base 10 (decimal)) (optional) // @param bKeepDigitOrder - Decides to start from the right side of the decimal or left (default is false) (optional) (see post for more details) // // @return The total number of digits found // stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > #if cellbits == 32 #define MAX_DECIMAL_DIGITS 10 #define MAX_BINARY_DIGITS 31 #define MAX_HEXADECIMAL_DIGITS 8 #else #define MAX_DECIMAL_DIGITS 19 |
| DecimalToBinary | stock DecimalToBinary( const iDecimal ) { |
| DecimalToBinary | stock DecimalToBinary( const iDecimal, szBinary[ ], const iBinaryLen ) { |
| DecimalToHex | stock DecimalToHex( const iDecimal, szHexResult[ ], const iHexLen ) stock BinaryToDecimal( const szBinary[ ] ) stock DecimalToBinary( const iDecimal, szBinary[ ], const iBinaryLen ) stock BinaryToHex( const szBinary[ ], szHexResult[ ], const iHexLen ) stock HexToBinary( const szHex[ ], szBinaryResult[ ], const iBinaryLen ) // Retrives digits from a given value and returns the number of digits // // @param iValue - The value from which to get the digits // @param iDigits[ ] - The array to store the digits in (optional) // @param iDigitSize - The size of the array (optional) // @param iBase - The base of the number to find digits by (default is 10 for base 10 (decimal)) (optional) // @param bKeepDigitOrder - Decides to start from the right side of the decimal or left (default is false) (optional) (see post for more details) // // @return The total number of digits found // stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > #if cellbits == 32 #define MAX_DECIMAL_DIGITS 10 |
| DecimalToHex | stock DecimalToHex( const iDecimal, szHexResult[ ], const iHexLen ) { |
| GetDigits | stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > #if cellbits == 32 #define MAX_DECIMAL_DIGITS 10 #define MAX_BINARY_DIGITS 31 #define MAX_HEXADECIMAL_DIGITS 8 #else #define MAX_DECIMAL_DIGITS 19 #define MAX_BINARY_DIGITS 63 #define MAX_HEXADECIMAL_DIGITS 16 #endif stock const __HEXCHARS[ ] = "0123456789ABCDEF" |
| GetDigits | stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) { |
| HexToBinary | stock HexToBinary( const szHex[ ], szBinaryResult[ ], const iBinaryLen ) // Retrives digits from a given value and returns the number of digits // // @param iValue - The value from which to get the digits // @param iDigits[ ] - The array to store the digits in (optional) // @param iDigitSize - The size of the array (optional) // @param iBase - The base of the number to find digits by (default is 10 for base 10 (decimal)) (optional) // @param bKeepDigitOrder - Decides to start from the right side of the decimal or left (default is false) (optional) (see post for more details) // // @return The total number of digits found // stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > #if cellbits == 32 #define MAX_DECIMAL_DIGITS 10 #define MAX_BINARY_DIGITS 31 #define MAX_HEXADECIMAL_DIGITS 8 #else #define MAX_DECIMAL_DIGITS 19 #define MAX_BINARY_DIGITS 63 #define MAX_HEXADECIMAL_DIGITS 16 #endif |
| HexToBinary | stock HexToBinary( const szHex[ ] ) { |
| HexToBinary | stock HexToBinary( const szHex[ ], szBinaryResult[ ], const iBinaryLen ) { |
| HexToDecimal | stock HexToDecimal( const szHex[ ] ) stock DecimalToHex( const iDecimal, szHexResult[ ], const iHexLen ) stock BinaryToDecimal( const szBinary[ ] ) stock DecimalToBinary( const iDecimal, szBinary[ ], const iBinaryLen ) stock BinaryToHex( const szBinary[ ], szHexResult[ ], const iHexLen ) stock HexToBinary( const szHex[ ], szBinaryResult[ ], const iBinaryLen ) // Retrives digits from a given value and returns the number of digits // // @param iValue - The value from which to get the digits // @param iDigits[ ] - The array to store the digits in (optional) // @param iDigitSize - The size of the array (optional) // @param iBase - The base of the number to find digits by (default is 10 for base 10 (decimal)) (optional) // @param bKeepDigitOrder - Decides to start from the right side of the decimal or left (default is false) (optional) (see post for more details) // // @return The total number of digits found // stock GetDigits( const iValue, iDigits[ ] = "", const iDigitSize = 0, const iBase = 10, bool:bKeepDigitOrder = false ) stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > |
| HexToDecimal | stock HexToDecimal( const szHex[ ] ) { |
| ReverseArray | stock ReverseArray( iArray[ ], const iSize ) */ #include < amxmodx > #if cellbits == 32 #define MAX_DECIMAL_DIGITS 10 #define MAX_BINARY_DIGITS 31 #define MAX_HEXADECIMAL_DIGITS 8 #else #define MAX_DECIMAL_DIGITS 19 #define MAX_BINARY_DIGITS 63 #define MAX_HEXADECIMAL_DIGITS 16 #endif stock const __HEXCHARS[ ] = "0123456789ABCDEF" |
| ReverseArray | stock ReverseArray( iArray[ ], const iSize ) { |