LassoScript Utility
Basics Browse Detail

[Math_Cos]

Tag Link [Math_Cos] Category Math
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type Decimal Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Math_Cos] returns the cosine of a single decimal parameter specified in radians. Returns a decimal value between -1 and 1.

Syntax

[Math_CosDecimal Value]

Parameters

Required Parameters
Decimal Radians The value on which to operate.

Examples

To calculate the cosine of a number:

Use the [Math_Cos] tag. The following example calculates the cosine of 3.1415926 which is approximately Pi. The result is -1.

[Math_Cos: 3.1415926]

-1