def FormatNumberAsString(num):
 for suffix in ['b', 'KB', 'MB', 'GB']:
  if (num < 1024.0):
   return ('%3.2f%s' % (num, suffix))
  num /= 1024.0
 return ('%3.1f%s' % (num, 'TB'))

def FormatNumberAsString ( num ) : for suffix in [ 'b' , 'KB' , 'MB' , 'GB' ] : if ( num < 1024.0 ) : return ( '%3.2f%s' % ( num , suffix ) ) num /= 1024.0 return ( '%3.1f%s' % ( num , 'TB' ) )
return a large number in human readable form .