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 = size / 1024
        mSize = '%.1fG' % size
    else:
        mSize = '%.1fM' % size
    rh.printSysLog('Exit generalUtils.cvtToMag, magSize: ' + mSize)
    return mSize
