switch from android's FloatMath to java.lang.Math