Integer Functions
abs
ts
int.abs(): intReturns the absolute value of an integer. If the integer is negative, it will return the positive value of it
Input Example:
textwire
{{ -5.abs() }}Output:
html
5decimal
Read about this function HERE
float
ts
int.float(): floatConverts an integer to a float by adding a decimal part of .0 to the number
Input Example:
textwire
{{ 5.float() }}Output:
html
5.0The value 0 will be converted to 0.0.
len
ts
int.len(): intReturns the number of digits in an integer. If the integer is negative, it will return the number of digits excluding the - sign
Input Example:
textwire
{{ 12345.len() }}Output:
html
5str
ts
int.str(): strConverts an integer to a string and returns it
Input Example:
textwire
{{ 5.str() }} and {{ -10.str() }}Output:
html
5 and -10