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
Spire.PDF for Java 2.7.8
Database Workbench Pro 5.6.10.0
The C# PDF Library 2020.1.5
CAD-Viewer 3DVBVIEW V4
dotConnect for SQLite 5.15
LuaStudio 9.92
EntityDAC 2.3
Devart ODBC Driver for QuickBooks 2.0
phpEnter 5.1.
Udemy Clone script 2.01
VisualNEO Web 19.11.7
VisualNEO for Windows 19.4.29.0
SentiVeillance SDK Trial 7.3
Devart ODBC Driver for PostgreSQL 3.2
SecureBridge 9.2
Top Code
SecureBridge 8.0
dotConnect for SQLite 5.9
ATN Site Builder 3.0
Database Workbench Pro 5.6.10.0
EntityDAC 1.6
ATN Resume Finder 2.0
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
The C# PDF Library 1.0
Devart ODBC Driver for PostgreSQL 3.2
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Solid File System OS edition 5.1
ADO.NET Provider for ExactTarget 1.0
Top Rated
phpEnter 5.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
ADO.NET Provider for ExactTarget 1.0
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: 11
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: 11



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