Sitemap
Better Programming

Advice for programmers.

Follow publication

Member-only story

Why (0.302 == 0.302) is False in C++?

Minhaz
4 min readOct 5, 2022

--

Image by Minhaz (Author) generated using Photopea.
Counter = 0

So, What’s Going on Here?

Representation of floating point values in memory

--

--

Minhaz
Minhaz

Written by Minhaz

Staff Software Engineer @Google. Leading teams democratising On device AI for for masses. Writes about programming generics & specifics.

Responses (2)