Bloomberg Interview Question

How would you know if a double has four decimal places?

Interview Answer

Anonymous

Nov 16, 2015

(double * 10000) == (int)(double * 10000) and (double * 10000 mod 10 != 0)