Branch: refs/heads/master
  Home:   https://github.com/phpmyadmin/phpmyadmin
  Commit: f3ca367efa5a44161ca6fa3a2a9fa3b9ed24cbb1
      
https://github.com/phpmyadmin/phpmyadmin/commit/f3ca367efa5a44161ca6fa3a2a9fa3b9ed24cbb1
  Author: Michal Čihař <mic...@cihar.com>
  Date:   2016-08-30 (Tue, 30 Aug 2016)

  Changed paths:
    M ChangeLog
    M libraries/Util.php
    M libraries/common.inc.php
    M test/bootstrap-dist.php
    M test/libraries/common/PMA_formatNumberByteDown_test.php

  Log Message:
  -----------
  Fix number formatting with different settings of precision in PHP

- fixed Util::formatNumber to avoid rounding issues to mess up display
- force precision = 14 to ensure we get sane behavior

With precision set to higher value many things do not behave as expected
producing strange numbers in various places.

For example with precision=19 you get:

php > echo round(1.2, 2);
1.199999999999999956

Fixes #12303

Signed-off-by: Michal Čihař <mic...@cihar.com>


  Commit: 2148df85f1558dcbde30f772f3ec8e7bf6c83277
      
https://github.com/phpmyadmin/phpmyadmin/commit/2148df85f1558dcbde30f772f3ec8e7bf6c83277
  Author: Michal Čihař <mic...@cihar.com>
  Date:   2016-08-30 (Tue, 30 Aug 2016)

  Changed paths:
    M ChangeLog
    M libraries/Util.php
    M libraries/common.inc.php
    M test/bootstrap-dist.php
    M test/libraries/common/PMA_formatNumberByteDown_test.php

  Log Message:
  -----------
  Merge branch 'QA_4_6'


  Commit: 6f8bb9d0ecfbc4dae033b5088efad6a2d9c2f757
      
https://github.com/phpmyadmin/phpmyadmin/commit/6f8bb9d0ecfbc4dae033b5088efad6a2d9c2f757
  Author: Michal Čihař <mic...@cihar.com>
  Date:   2016-08-30 (Tue, 30 Aug 2016)

  Changed paths:
    M po/ig.po

  Log Message:
  -----------
  Merge branch 'master' of github.com:phpmyadmin/phpmyadmin


Compare: 
https://github.com/phpmyadmin/phpmyadmin/compare/c8b6c9e87b17...6f8bb9d0ecfb
_______________________________________________
Git mailing list
Git@phpmyadmin.net
https://lists.phpmyadmin.net/mailman/listinfo/git

Reply via email to