English
Source / code snippets

Größenangabe Humanisieren

 
These function training the as Parameter (String) übergebenen Filesize (in byte) a String, which for Humans verständlicher is.
CompileMarkSeparation
Proc Humanizesize

    Parameters S$
    Declare H!
    H!:=Val(S$)

    If (H!<512)

        S$:=S$+" B"

    Elseif (H!<524288)

        S$:=Str$(Round(H!/1024,1))+" KB"

    Elseif (H!<536870912)

        S$:=Str$(Round(H!/1024/1024,1))+" MB"

    Endif

    Return S$

Endproc

 
05/15/05  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.009 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie