Get the latest tech news

Moving integer division to floating-point is trivial


Shows that floating point trunc(x/y) equals integer x/y provided the integers fit in the floating point format.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of point

point

Photo of integer division

integer division

Related news:

News photo

"Coding is solved" misses the point

News photo

'There's no point in an art gallery without artists'

News photo

A California aquifer may have crossed the point of no return