Docs
OverviewTemplate SyntaxQuick Guide

Resources

Source code

Modifiers

Text
Casing
lowerslugtitletitle_modelupper
Edit
concathashreplacereplace_patternreverseshortenwrap
Split & join
joinlinessplit
Trim
trimtrim_prefixtrim_suffix
Escape
escape_htmlescape_jsescape_url
Format
currencydatedecimalfrom_datelengthline_numbers
Collections
Access
findfirstkeylastpluck
Query
filterhasis
Transform
cleanflattenmapmergesortsum
Files & paths
File
file
Path
dirnameextext_dotext_prependext_trimfilename
Convert
Parse
from_csvfrom_jsonfrom_yaml
Serialize
jsonmarkdownyaml
Logic
Compare
andeqgtgteltlteneqnotor
Default
defaultwhen
Render
Template
template
Datetime
add_daysadd_monthsadd_yearsdays_between
Math
adddividemultiplysubtract
Docs/Sintax/Math/multiply

multiply

Returns the value scaled by the given number, which is a line total from a price and a quantity, a tax-inclusive amount from a rate, or a count converted into a period.

InputArgumentsReturnsanyanyfloat64
Source
BasicSource

Scales an amount by a rate.

Given

{"net": "100"}

Template

{{ net | multiply:1.21 | decimal:2 }}

Result

121.00
Read the source of multiply on GitHub
PreviousdivideNext subtract

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub