◆ AsciiToString()
| proto external string int.AsciiToString |
( |
| ) |
|
Converts ASCII code to string.
- Returns
string - Converted int. int ascii_code = 77;
>> str = 'M'
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
proto external string AsciiToString()
Converts ASCII code to string.
◆ Sign()
| proto external int int.Sign |
( |
| ) |
|
Returns an integer that indicates the sign of a number.
- For
intNumber.Sign() < 0 result is -1.
- For
intNumber.Sign() == 0 result is 0.
- For
intNumber.Sign() > 0 result is 1.
◆ ToString()
Integer to string with fixed length, padded with zeros.
- Parameters
-
| len | int Fixed length of output string, number will be padded with '0' from left. |
| hex | bool If true, formats the value as hexadecimal. Otherwise, formats as decimal. |
| prefix | string Prefixes the hexadecimal output (e.g., "#FF00AA"). int num = 123;
string s3 = num. ToString(len: 4, hex: true, prefix: "#");
>> s1 = '00123'
>> s2 = '123'
>> s3 = '#007B'
proto external string ToString(int len=-1, bool hex=false, string prefix=string.Empty) Integer to string with fixed length, padded with zeros.
|
◆ INVALID_INDEX
| const int int.INVALID_INDEX = -1 |
|
static |
◆ MAX
| const int int.MAX = 2147483647 |
|
static |
◆ MIN
| const int int.MIN = -2147483648 |
|
static |
The documentation for this interface was generated from the following file:
- Core/generated/Types/int.c