STR SIZE()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return a 'human readable' character string for the specified number in KB, MB or GB

Syntax

STR_SIZE(<expN>)

See Also

FSIZE(), ISDIGIT(), STR_COMPRESS(), STR_DATE(), STR_UNCOMPRESS(),

Description

The STR_SIZE() function returns a 'human readable' character string for the specified number <expN> in KB, MB or GB.

Example

? fsize("example.dbf")
     36485
? str_size(fsize("example.dbf"))
35.000KB