Skip to main content

$(percent)

$(percent [value] [total] <decimals>)

Displays value ÷ total as a number from 0–100. Only the number is displayed — add your own % sign after it. decimals controls the decimal places (default 0). An invalid or zero total displays "0".

Examples

$(percent 30 120)

Will display "25"

$(percent {{goal_current}} {{goal_target}})%

Will display goal progress, e.g. "62%"

$(percent 1 3 1)

Will display "33.3"