<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cvtToMag(rh, size):
 """ Convert a size value to a number with a magnitude appended. Input: Request Handle Size bytes Output: Converted value with a magnitude """


    rh.printSysLog("Enter generalUtils.cvtToMag")

    mSize = ''
    size = size / (1024 * 1024)

    if size > (1024 * 5):
        # Size is greater than 5G. Using "G" magnitude.
        size = size / 1024
        mSize = "%.1fG" % size
    else:
        # Size is less than or equal 5G. Using "M" magnitude.
        mSize = "%.1fM" % size

    rh.printSysLog("Exit generalUtils.cvtToMag, magSize: " + mSize)
    return mSize