Tagged articles
2 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
May 24, 2023 · Fundamentals

Why 0.1 + 0.2 Gives 0.30000000000000004 – Inside 64‑bit Floating‑Point Math

This article explains why adding the decimal numbers 0.1 and 0.2 in binary floating‑point arithmetic yields the surprising result 0.30000000000000004, by detailing the exact 64‑bit representations, the rounding‑to‑nearest‑even rule, and step‑by‑step Python calculations that expose the underlying IEEE‑754 mechanics.

IEEE-754PythonRounding
0 likes · 10 min read
Why 0.1 + 0.2 Gives 0.30000000000000004 – Inside 64‑bit Floating‑Point Math
Laravel Tech Community
Laravel Tech Community
Feb 21, 2021 · Backend Development

PHP pow() Function – Exponential Expression

The PHP pow() function returns the base raised to the exponent, optionally yielding an integer, and its usage is illustrated with examples showing integer, zero, negative, and floating‑point exponent cases, including version‑specific behavior for PHP 4.0.6 and later.

BackendPHPPoW
0 likes · 2 min read
PHP pow() Function – Exponential Expression