# Proposal: change precision for output functions

- Thread: https://externals.io/message/103699
- Original archive: https://news-web.php.net/php.internals/103699
- Started by Legale.legale on 2019-01-07T21:39:10+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #103699 — Legale.legale — 2019-01-07T21:39:10+00:00

URL: https://externals.io/message/103699#103699

What proposal? I'm talking about elementary arithmetic. 

Take a look here:
Https://jdoodle.com/embed/v0/Tgu

>
>
> > […]
>
> Hi! 
>
> If you are about the proposal, then '0.1 + 0.7 !== 0.8'. 
> Why you expected 0.8? 
> Check, plz: https://3v4l.org/Ughn2 
>
>  -- Semen V. Dubina https://sam002.net/

---

## #103701 — Semen Dubina — 2019-01-07T22:16:54+00:00

URL: https://externals.io/message/103699#103701 · In reply to: #103699

> 08.01.2019, 00:39, "Legale.legale" <legale.legale@gmail.com>:
> What proposal? I'm talking about elementary arithmetic.
>
> Take a look here:
> Https://jdoodle.com/embed/v0/Tgu

Yes, floating-point arithmetic says: '0.8!=0.1+0.7'.
jdoodle.com/a/Thv

Will we discuss this now?

-- Semen V. Dubina https://sam002.net/
