]> git.maquefel.me Git - brevno-suite/hugo/commit
tpl: Workaround s390x precision of Atan and Tan
authorDr. Tobias Quathamer <toddy@debian.org>
Sun, 28 Sep 2025 15:43:11 +0000 (17:43 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 29 Sep 2025 15:09:29 +0000 (17:09 +0200)
commit105d3bc32f1c98b04ee81ce686215b1bb6dfbd8e
tree091e5ad8739dc69e77cc3f660283c205267b8436
parent3e46ba5ce2e382e7b388103427c20c21c11fc839
tpl: Workaround s390x precision of Atan and Tan

On s390x, math.Atan(1) and math.Tan(1) give values that slightly differ
from other architectures, causing TestTemplateFuncsExamples to fail.

The golang math package states in the overview:
"This package does not guarantee bit-identical results across architectures."
tpl/math/init.go