When using TrackerList compute function (sum of a column), sometimes it returns the number: 7.105427357601E-015
This is reported on several php forums and is not a bug but: "its the acceptable precision of floating point numbers" or also described as "Subtracting 2 floats returns incorrect results".
Seems that a workaround patch may be necessary as one post suggests:
"so I guess you need to hack it: if ($resultB < 0.000) $resultB = 0;"
Here are links:
http://forums.oscommerce.com/topic/199647-php-math-bug-big-problem/
https://bugs.php.net/bug.php?id=41213&edit=1
br,
Mike
Use mathematical calculation field instead
https://doc.tiki.org/Mathematical+Calculation+Tracker+Field
with the advanced syntax:
https://doc.tiki.org/Advanced+Rating
Or the new features added in TableSorter in Tiki15 for sums and averages of data in the table, etc.: param "tstotals".
The compute field is deprecated (risky, security-wise) and will not be extended anymore, I'm afraid.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |