Actions
Feature proposal #5977
closedExtend math format function with sub functions
Description
Example as follows.
[cb:parse function="math" method="round" length="2"]1.00000[/cb:parse]
This is after the regular math parsing has applied. So you could do the following.
[cb:parse function="math" method="round" length="2"]2 / 3 - 5 + 1.00000[/cb:parse]
Updated by beat over 8 years ago
or maby a sprintf="...." - attribute functionality, as sprintf can do the decimals and number formatting as well ?
Updated by krileon about 7 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Following methods are now supported for math function.
round (parameters: decimal), ceil, floor, abs, number (parameters: decimals, decimal, and separator)
These are applied after the math has been processed so you can format it to a number, round it, etc.. after doing some math.
Actions