Formatting plug-in
Posted: August 9th, 2005, 12:50 am
Formatting plug-in
The Formatting plug-in for LCD Smartie allows the output from other plug-ins for be formatted to better suit the small size of LCDs, by shortening output with dots ("..."). It can also be used to display numbers with correct notation.
function1
$dll(formatting,1,{number},{style}) applies numeric formatting to the {number} parameter, using the formatting passed in the {style} parameter. For example,
$dll(formatting,1,1234.5,#`##0.00) yields "1,234.50".
function2
$dll(formatting,2,{text},{length}[#{number of dots}]) shorten a string and adds dots, if required. For example,
$dll(formatting,2,123456789012345678901234567890,10#4) yields "123456....".
function3
$dll(formatting,3,{bytes},) converts {bytes} to bits. Nuff said.
function4
$dll(formatting,4,{number},[{format}]) attempts to format the byte value in {number} down to a smaller number, and add a "scale". For example,
$dll(formatting,4,$dll(perf,4,5,\Memory\Available Bytes),#`##0.00)B yields "1.72GB"
Further documentation and examples are provide in the enclosed Read Me file. Requires .NET 2 Framework.
v1.0
Download (7.15KB)
JJ
The Formatting plug-in for LCD Smartie allows the output from other plug-ins for be formatted to better suit the small size of LCDs, by shortening output with dots ("..."). It can also be used to display numbers with correct notation.
function1
$dll(formatting,1,{number},{style}) applies numeric formatting to the {number} parameter, using the formatting passed in the {style} parameter. For example,
$dll(formatting,1,1234.5,#`##0.00) yields "1,234.50".
function2
$dll(formatting,2,{text},{length}[#{number of dots}]) shorten a string and adds dots, if required. For example,
$dll(formatting,2,123456789012345678901234567890,10#4) yields "123456....".
function3
$dll(formatting,3,{bytes},) converts {bytes} to bits. Nuff said.
function4
$dll(formatting,4,{number},[{format}]) attempts to format the byte value in {number} down to a smaller number, and add a "scale". For example,
$dll(formatting,4,$dll(perf,4,5,\Memory\Available Bytes),#`##0.00)B yields "1.72GB"
Further documentation and examples are provide in the enclosed Read Me file. Requires .NET 2 Framework.
v1.0
Download (7.15KB)
JJ