Lasso Soft Inc. > Home

[lp_integer_bytes]

Linklp_integer_bytes
AuthorBil Corry
CategoryMath
Version8.x
LicensePublic Domain
Posted05 Dec 2005
Updated05 Dec 2005
More by this author...

Description

Returns the number of bytes the given integer is comprised of.

Requires [lp_integer_bits]

Sample Usage

loop: -from=65000, -to=66000;
loop_count ' ';
lp_integer_bytes: loop_count;
'
'; /loop;

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

[

define_tag:'lp_integer_bytes',
	-description='Returns the number of bytes the given integer is comprised of.',
	-priority='replace',
	-required='integer';
	return: (math_ceil: (lp_integer_bits: (integer:#integer)) / 8.0);

/define_tag;

]

Comments

No comments

Please log in to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft