employer cover photo
employer logo
employer logo

Palantir Technologies

Is this your company?

Palantir Technologies Interview Question

All computers have a certain precision for floating point numbers, called E. How would you write a program that would detect the precision for the computer it is run on?

Interview Answer

Anonymous

Jun 17, 2014

take a number and +1 of it, then check whether their difference is greater than 0.5. Multiply both numbers with two until this loop breaks