Number Formatting
1. :formatN(precision)
Syntax Explanation
Formats a number according to localization settings.
Parameter:
- precision: The number of decimal places.
For ODS/XLSX formats, the number of displayed decimals is determined by the text editor; for other formats, this parameter is used.
Example
Result
The number is output according to the specified precision and localization format.
2. :round(precision)
Syntax Explanation
Rounds the number to the specified number of decimal places.
Example
Result
The output is the number rounded to the given precision.
3. :add(value)
Syntax Explanation
Adds the specified value to the current number.
Parameter:
- value: The number to add.
Example
Result
The output is the sum of the current number and the specified value.
4. :sub(value)
Syntax Explanation
Subtracts the specified value from the current number.
Parameter:
- value: The number to subtract.
Example
Result
The output is the current number minus the specified value.
5. :mul(value)
Syntax Explanation
Multiplies the current number by the specified value.
Parameter:
- value: The multiplier.
Example
Result
The output is the product of the current number and the specified value.
6. :div(value)
Syntax Explanation
Divides the current number by the specified value.
Parameter:
- value: The divisor.
Example
Result
The output is the result of the division.
7. :mod(value)
Syntax Explanation
Computes the modulus (remainder) of the current number divided by the specified value.
Parameter:
- value: The modulus divisor.
Example
Result
The output is the remainder from the modulus operation.
8. :abs
Syntax Explanation
Returns the absolute value of the number.
Example
Result
The output is the absolute value of the input number.
9. :ceil
Syntax Explanation
Rounds the number upward to the smallest integer that is greater than or equal to the current number.
Example
Result
The output is the number rounded upward to the nearest integer.
10. :floor
Syntax Explanation
Rounds the number downward to the largest integer that is less than or equal to the current number.
Example
Result
The output is the number rounded downward to the nearest integer.
11. :int
Syntax Explanation
Converts the number to an integer (not recommended for use).
Example and Result
Depends on the specific conversion case.
12. :toEN
Syntax Explanation
Converts the number to English format (using . as the decimal point). Not recommended for use.
Example and Result
Depends on the specific conversion case.
13. :toFixed
Syntax Explanation
Converts the number to a string while keeping only the specified number of decimal places. Not recommended for use.
Example and Result
Depends on the specific conversion case.
14. :toFR
Syntax Explanation
Converts the number to French format (using , as the decimal separator). Not recommended for use.
Example and Result
Depends on the specific conversion case.

