Floating Point

A Tale of Two Zeros

1 minute read

One day I came across some code that looked like this (paraphrased):

Precisely Compare Ints and Floats

2 minute read

Here’s a seemingly trivial task that I ran into recently - given a 64 bit int i and a 64 bit floating point f, how can we tell which one is larger?