Implement without-bcmath compatible UnitConverter. We might want to factor our floati...
commit6d7a17e9b626d698b00221ae9522e938df630550
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Wed, 21 May 2008 00:29:31 +0000 (21 00:29 +0000)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Wed, 21 May 2008 00:29:31 +0000 (21 00:29 +0000)
treecb1c8bb9ff7fae6b0b8aef7744246fe4ac69cee8
parent64b5581bf20fe292783c54a341ecced9cb91fde8
Implement without-bcmath compatible UnitConverter. We might want to factor our floating point fudges. These calculations are only accurate for small precisions, and are architecture-dependent. (Unit tests seem to work on 32bit, though).

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1752 48356398-32a2-884e-a903-53898d9a118a
INSTALL
library/HTMLPurifier/UnitConverter.php
tests/HTMLPurifier/UnitConverterTest.php