I’ve seen two three different, pretty-good template authors tackle this issue in {{delimitnum}} and {{val}} and both ran up against the precise same rounding error and struggled mightily with it for a week. I assume that they currently have no other math-based parser functions to avail themselves of to avoid this issue. Is that assumption incorrect?
On Feb 1, 2009, at 6:22 AM, Platonides wrote:
Aryeh Gregor wrote:
The issue is bog-standard floating-point error. If PHP has a decent library for exact-precision arithmetic, we could probably use that. Otherwise, template programmers will have to learn how floating-point numbers work just like all other programmers in the universe.
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l