Precision error measures

Added an optional hack to compensate for double type precision measures.