Function zagzig

  • Perform zigzag decoding on the input number.

    Parameters

    • num: number

      the input

    Returns number

    • the decoded signed output