Function is_zero_num

  • Determines whether x is zero, if the value is a rational or double. Otherwise, returns false.

    Parameters

    • x: U

      The value being tested.

    Returns x is Num & {
        isZero: true;
    }