Add setFloatingPointPrecision

Add setFloatingPointPrecision for float and double