Take boolean in consideration in originalIsNumericallyEquivalent