Example #1
0
def testTb():
    tbSize = 763832854988542
    tbStr = formatSize(tbSize, decimalNum=2)
    print("%s -> %s" % (tbSize, tbStr))
Example #2
0
def testPb():
    pbSize = 763832854988542665
    pbStr = formatSize(pbSize, decimalNum=4)
    print("%s -> %s" % (pbSize, pbStr))
Example #3
0
def testMb():
    mbSize = 76383285
    mbStr = formatSize(mbSize, decimalNum=2)
    print("%s -> %s" % (mbSize, mbStr))
Example #4
0
def testBytes():
    bytesSize = 352
    bytesStr = formatSize(bytesSize)
    print("%s -> %s" % (bytesSize, bytesStr))
Example #5
0
def testSeparator():
    seperatorSize = 98654
    seperatorStr = formatSize(seperatorSize, sizeUnitSeperator=" ")
    print("%s -> %s" % (seperatorSize, seperatorStr))
Example #6
0
def testI():
    iSize = 87533
    iStr = formatSize(iSize, isUnitWithI=True)
    print("%s -> %s" % (iSize, iStr))
Example #7
0
def testKb():
    kbSize = 3746
    kbStr = formatSize(kbSize)
    print("%s -> %s" % (kbSize, kbStr))