Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
ATN Site Builder 3.0
IcrediBB Bulletin Board System 1.0
PHP MLM Software 2.0.1
GnuWin64 64
OpenCV Delphi wrapper 1.0
PAWS 0.2
Hotel Management System Restaurant Version 5.25
Creating Lists Using The Android ListActivity 1.0
Learning Management Systems
ASP Chat Script
Complete ASP Chat Application
ASP Chat Application 2.0
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Convert Byte Size to String Representation 
File ID: 64991






Convert Byte Size to String Representation 
Download Convert Byte Size to String Representation http://code.activestate.com/recipes/578075-markov-encryption-module/Report Error Link
License: Freeware
Downloads: 18
User Rating:1 Stars  (1 rating)
Submit Rating:
Convert Byte Size to String Representation  Description
Description: In anticipation of creating large data structure, it appeared to be helpful if the users could get an idea of how much memory (RAM in particular) would be used while attempting to create a large, multidimensional array. In order to convert the calculated size into a precise, human-readable format, the follow code was devised. In order to convert a number into an equivalent representation of bytes, just call the "convert" function while providing the number as its argument. The other functions are currently public in case anyone else finds them useful.

License: Freeware

Related: Conversion, representation

O/S:Windows

Downloads: 18



More Similar Code

This little helper function allows to obtain a string representation for Matlab class instances.
Main feature is that properties which are also objects are converted recursively.
The recursion level is represented by tab intendation.
The maximum depth is definable, but infinite loops are taken care of automatically.

For more detailed object analysis checkout the UIInspect (#17935) program, and for Java class...



How to convert http date to OLE(VB/VBS) date is a tutorial which shows the way to transform the HTTP date to OLE date such as VB or VBS for the users on their websites. The procedure of this tutorial is described in detail with an example. This...



Console program to convert ANSI files to UNICODE files. Including Recursive option and filter.



Python's built in function str() and unicode() return a string representation of the object in byte string and unicode string respectively. This enhanced version of str() and unicode() can be used as handy functions to convert between byte string...



Convert an integer number of bytes to a string representation. Example: 1024 -> 1 kB

Based quite heavily on http://mail.python.org/pipermail/python-list/2008-August/1171178.html



A simple function to convert a headerless XML string into a dictionary using only simplejson and re.



convert a number to a string representation that is more easily parsed by humans.
It supports inserting thousands separators and converting to IEC or SI units.



It's a simple recipe to convert a str type string with pure unicode code point (e.g string = "\u5982\u679c\u7231" ) to an unicode type string.
Actually, this method has the same effect with 'u' prefix. But differently, it allows...



Command line tool to convert BMP images to binary bitmaps and c header files with 8bit page layout instead of line layout (one byte is 8-bit vertical line). Can be used to present data for graphical LCD images in micro controller programming (eg...



Convert TIFF files to PDF
Support single or multiple page TIFF
Support various TIFF encoding such as CCITT G3/G4, LZW, RLE and uncompressed
Merge multiple TIFF files into one PDF
Standalone, doesn't depend on Adobe Acrobat...

User Review for Convert Byte Size to String Representation
- required fields
     

Please enter text on the image