package com.facebook.react.uimanager; public class FloatUtil { private static final float EPSILON = 1.0E-5f; public static boolean floatsEqual(float f, float f2) { if (Float.isNaN(f) || Float.isNaN(f2)) { if (!Float.isNaN(f) || !Float.isNaN(f2)) { return false; } return true; } else if (Math.abs(f2 - f) < EPSILON) { return true; } else { return false; } } }Download file