jeblad created this task. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION The BCmath extension <https://www.mediawiki.org/wiki/Extension:BCmath> is a small extension to do a few mathematical operations on big numbers, using the BCMath PHP library <https://www.php.net/manual/en/book.bc.php> for arbitrary precision mathematics. It seems sufficient, but it could be that something more complete or faster is necessary, like full compliance with the IEEE 754r standard, or in other words fixing the abandoned ldecnumber library <http://luaforge.net/projects/ldecnumber/>. This is a much bigger libary (Lua Module Documentation <http://math2.org/luasearch/ldecNumber.html>). Visual inspection seems to indicate the quantity type follows the assumptions used by BCmath, but no docs have been found that this is in fact the intended behavior. It could just be a coincidence. The intention with BCmath is to be able to do unit conversions on big numbers, not to do heavy number crunching. Thus simplicity and safe operations are more of a concern than fast operation. That is the reason for using the BC library through the PHP interface, which are not especially fast. If speed is necessary, then ledecnumber should be fixed instead. TASK DETAIL https://phabricator.wikimedia.org/T234784 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jeblad Cc: #wikidata, jeblad, Aklapper
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs