Lasso Soft Inc. > Home

[lp_math_CtoF]

Linklp_math_CtoF
AuthorBil Corry
CategoryMath
Version8.x
LicensePublic Domain
Posted23 Dec 2005
Updated23 Dec 2005
More by this author...

Description

Returns Fahrenheit temperature given Celsius.

Requires [lp_decimal_precisionSet]

Sample Usage

lp_math_ctof: 0; // returns 32
'
'; lp_math_ctof: 100; // returns 212

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_math_CtoF',
	-description='Returns Fahrenheit temperature given Celsius.',
	-priority='replace',
	-required='celsius';

	// http://vathena.arc.nasa.gov/curric/weather/fahrcels.html

	return: (lp_decimal_precisionSet: (decimal:((decimal:9) / (decimal:5))) * (decimal:#celsius) + (decimal:32), 1);

/define_tag;

]

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

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