Hi there! Is there a specific reason more advanced math functions are not implemented / not mentioned in the docs? I’m mostly interested in standard trigonometric functions such as tangens and sine.
Would there be any opposition to adding these functions? Seems like a pretty minor thing.
I assume there are a number of possible use cases, but I would like to do some fairly simple calculations to determine which external resources to pull (map tiles in my case) based on some input (a geographical bounding box in my case). Doable in a few lines of Python code, but that would add quite a heavy dependency and also doesn’t integrate well with the Hugo ecosystem.
Yep!
Conversion between degrees and radians is fairly simple, but adding deg2rad and "rad2deg` functions would not be a big deal either.
I would be happy to submit a PR if the Hugo devs would welcome that.