Exponentiation/Power

When you want to exponentiate 2 numbers in the silverfin templating language, you can do this by using **. For example:

{% assign x = 2 %}
{% assign y = 3 %
{% assign power = x**y %}
{{ power }}

The above code will print 8

1 Like