Get the latest tech news

Float and integer arithmetic follow two different paradigms


When working with floats, we tend to reuse the more familiar integer arithmetic patterns. More specifically, we always try to prevent a disaster rather than reacting to it.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of follow

follow

Photo of float

float

Photo of Integer

Integer

Related news:

News photo

Integer multiplication below n log n

News photo

The Integer

News photo

Bets against SpaceX grow to 32% of float as Elon Musk warns short sellers won't survive