0.30000000000000004
0.30000000000000004 copied to clipboard
PHP bcadd
The PHP example is not valid under strict typing:
Fatal error: Uncaught TypeError: bcadd(): Argument #1 ($num1) must be of type
string, float given
It should look like this instead:
bcadd('.1', '.2', 1);