<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Math functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/</link><description>Recent content in Math functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/math/index.xml" rel="self" type="application/rss+xml"/><item><title>math.Abs</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/abs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/abs/</guid><description> New in v0.112.0 {{ math.Abs -2.1 }} → 2.1</description></item><item><title>math.Add</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/add/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/add/</guid><description>If one of the numbers is a float, the result is a float.
{{ add 12 3 2 }} → 17</description></item><item><title>math.Ceil</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/ceil/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/ceil/</guid><description>{{ math.Ceil 2.1 }} → 3</description></item><item><title>math.Counter</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/counter/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/counter/</guid><description>The counter is global for both monolingual and multilingual sites, and its initial value for each build is 1.
{{ warnf &amp;#34;single.html called %d times&amp;#34; math.Counter }} WARN single.html called 1 times WARN single.html called 2 times WARN single.html called 3 times Use this function to:
Create unique warnings as shown above; the warnf function suppresses duplicate messages Create unique target paths for the resources.FromString function where the target path is also the cache key Due to concurrency, the value returned in a given template for a given page will vary from one build to the next.</description></item><item><title>math.Div</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/div/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/div/</guid><description>If one of the numbers is a float, the result is a float.
{{ div 12 3 2 }} → 2</description></item><item><title>math.Floor</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/floor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/floor/</guid><description>{{ math.Floor 1.9 }} → 1</description></item><item><title>math.Log</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/log/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/log/</guid><description>{{ math.Log 42 }} → 3.737</description></item><item><title>math.Max</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/max/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/max/</guid><description>{{ math.Max 1 (slice 2 3) 4 }} → 4</description></item><item><title>math.Min</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/min/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/min/</guid><description>{{ math.Min 1 (slice 2 3) 4 }} → 1</description></item><item><title>math.Mod</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/mod/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/mod/</guid><description>{{ mod 15 3 }} → 0</description></item><item><title>math.ModBool</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/modbool/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/modbool/</guid><description>{{ modBool 15 3 }} → true</description></item><item><title>math.Mul</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/mul/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/mul/</guid><description>If one of the numbers is a float, the result is a float.
{{ mul 12 3 2 }} → 72</description></item><item><title>math.Pow</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/pow/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/pow/</guid><description>{{ math.Pow 2 3 }} → 8</description></item><item><title>math.Product</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/product/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/product/</guid><description> New in v0.114.0 {{ math.Product 1 (slice 2 3) 4 }} → 24</description></item><item><title>math.Rand</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/rand/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/rand/</guid><description>New in v0.121.2 The math.Rand function returns a pseudo-random number in the half-open interval [0.0, 1.0).
{{ math.Rand }} → 0.6312770459590062 To generate a random integer in the closed interval [0, 5]:
{{ math.Rand | mul 6 | math.Floor }} To generate a random integer in the closed interval [1, 6]:
{{ math.Rand | mul 6 | math.Ceil }} To generate a random float, with one digit after the decimal point, in the closed interval [0, 4.</description></item><item><title>math.Round</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/round/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/round/</guid><description>{{ math.Round 1.5 }} → 2</description></item><item><title>math.Sqrt</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/sqrt/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/sqrt/</guid><description>{{ math.Sqrt 81 }} → 9</description></item><item><title>math.Sub</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/sub/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/sub/</guid><description>If one of the numbers is a float, the result is a float.
{{ sub 12 3 2 }} → 7</description></item><item><title>math.Sum</title><link>https://v0-122-0--gohugoio.netlify.app/functions/math/sum/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/math/sum/</guid><description> New in v0.114.0 {{ math.Sum 1 (slice 2 3) 4 }} → 10</description></item></channel></rss>