[php-src] Issue #8314: EXP(N) != M_E ** N

From: Date: Thu, 07 Apr 2022 23:59:03 +0000
Subject: [php-src] Issue #8314: EXP(N) != M_E ** N
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240783@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8314 Comment Author: KapitanOczywisty > Why adding the numbers 0.1 and 0.2 has to give 0.3**0000000000000004**? Because it is fast, clock-cycle-level fast. In most cases exact values are not important anyway. However if you need the exact values e.g. for account balance, you should store values as cents using int. Other cases will do with rounding or BC Math extension.

« previous php.bugs (#240783) next »