Square roots?

What would it take to add to Hugo’s templates the ability to calculate square roots?

We already have basic arithmetic (add, mul, etc.) and some other Go functions (math.Floor, math.Round, etc.).

Why would I want to calculate square roots? Because I’m trying to display a group of differently-shaped images so that they all take up the same area on the screen. See MathCentral for the formula.

So I’d like to be able to use math.Sqrt in my shortcode. Any chance of adding it?

That sounds reasonable, but someone have to do it You can start by creating a GitHub issue?

I’ve created a Github issue, and I’ll have a look at the code to see if there’s any chance of me working out how to add this feature.