Math Viper Module
Viper Methods
Global Viper Method | Description |
---|---|
Math.Abs Viper Method | Returns the absolute value of the specified number. |
Math.Acos Viper Method | Returns the angle whose cosine is the specified number. |
Math.Asin Viper Method | Returns the angle whose sine is the specified number. |
Math.Atan Viper Method | Returns the angle whose tangent is the specified number. |
Math.Ceiling Viper Method | Returns the smallest integer greater than or equal to the specified number. |
Math.Cos Viper Method | Returns the cosine of the specified angle. |
Math.E Viper Method | Returns the natural logarithmic base, specified by the constant,E. |
Math.Exp Viper Method | ReturnsEraised to the specified power. |
Math.float.max Viper Method | Returns the float max value. |
Math.float.min Viper Method | Returns the float min value. |
Math.Floor Viper Method | Returns the largest integer less than or equal to the specified number. |
Math.Hex Viper Method | Converts the specified number into a string of hexadecimal digits. |
Math.int.max Viper Method | Returns the integer max value. |
Math.int.min Viper Method | Returns the integer min value. |
Math.Log Viper Method | Returns the natural (baseE) logarithm of a specified number. |
Math.Log10 Viper Method | Returns the base 10 logarithm of a specified number. |
Math.Max Viper Method | Returns the larger of two specified numbers. |
Math.Min Viper Method | Returns the smaller of two specified numbers. |
Math.Pi Viper Method | Returns the ratio of the circumference of a circle to its diameter, specified by the constant, π. |
Math.Pow Viper Method | Returns a specified number raised to the specified power. |
Math.Random Viper Method | Returns a random integer. |
Math.Round Viper Method | Rounds the specified number to the nearest integer. |
Math.SetRandomSeed Viper Method | Sets a new seed for random number generation. |
Math.Sign Viper Method | Returns a value indicating the sign of the specified number. |
Math.Sin Viper Method | Returns the sine of the specified angle. |
Math.Sqrt Viper Method | Returns the square root of a specified number. |
Math.Tan Viper Method | Returns the tangent of the specified angle. |
Example
Env Info Examples
This example generates an HTML table containing all iXperion environment information available.
Smartsite SXML | Copy Code |
---|---|
<h1>iXperion Information</h1> <table> <tr><th colspan="2">About</th></tr> <se:format inputdata="{env.about()}"> <se:rowformat> <tr> <td>{string.capitalize(this.field(key))}</td> <td>{this.field(value)}</td> </tr> </se:rowformat> </se:format> <tr><th colspan="2">Server Info</th></tr> <tr> <td>Server Address</td> <td>{env.serveraddress()}</td> </tr> <tr> <td>Default Server Address</td> <td>{env.defaultserveraddress()}</td> </tr> <tr> <td>CMS Server Address</td> <td>{env.cmsserveraddress()}</td> </tr> <tr> <td>Server Name</td> <td>{env.servername()}</td> </tr> <tr><th colspan="2">Application Details</th></tr> <tr> <td>Executing Assembly</td> <td>{env.getexecutingassembly()}</td> </tr> <tr> <td>Identity:</td> <td>{env.identity()}</td> </tr> <tr> <td>Is Interactive</td> <td>{env.isinteractive()}</td> </tr> <tr> <td>Memory Usage</td> <td>{env.memoryusage()}</td> </tr> <tr> <td>Process ID</td> <td>{env.processid()}</td> </tr> <tr> <td>Thread ID</td> <td>{sys.thread.id()}</td> </tr> <tr><th colspan="2">Page Cache</th></tr> <se:format inputdata="{env.pagecacheinfo()}" whitespace="remove"> <se:rowformat> <tr> <td>{string.capitalize(this.field(key))}</td> <td>{this.field(value)}</td> </tr> </se:rowformat> </se:format> <tr><th colspan="2">Services</th></tr> <tr><td colspan="2">{env.servicesinfo()}</td></tr> <tr><th colspan="2">Host Headers</th></tr> <se:format inputdata="{env.hostheaders()}" whitespace="remove"> <se:rowformat> <tr> <td>{string.capitalize(this.field(HostHeader))}</td> <td>Channel: {this.field(Channel)}, StartPage: {this.field(BrowseStartpage)}</td> </tr> </se:rowformat> </se:format> </table> |
See Also
-
Math.Abs Viper Method
Returns the absolute value of the specified number. -
Math.Acos Viper Method
Returns the angle whose cosine is the specified number. -
Math.Asin Viper Method
Returns the angle whose sine is the specified number. -
Math.Atan Viper Method
Returns the angle whose tangent is the specified number. -
Math.Ceiling Viper Method
Returns the smallest integer greater than or equal to the specified number. -
Math.Cos Viper Method
Returns the cosine of the specified angle. -
Math.E Viper Method
Returns the natural logarithmic base, specified by the constant,E. -
Math.Exp Viper Method
ReturnsEraised to the specified power. -
Math.float.max Viper Method
Returns the float max value. -
Math.float.min Viper Method
Returns the float min value. -
Math.Floor Viper Method
Returns the largest integer less than or equal to the specified number. -
Math.Hex Viper Method
Converts the specified number into a string of hexadecimal digits. -
Math.int.max Viper Method
Returns the integer max value. -
Math.int.min Viper Method
Returns the integer min value. -
Math.Log Viper Method
Returns the natural (baseE) logarithm of a specified number. -
Math.Log10 Viper Method
Returns the base 10 logarithm of a specified number. -
Math.Max Viper Method
Returns the larger of two specified numbers. -
Math.Min Viper Method
Returns the smaller of two specified numbers. -
Math.Pi Viper Method
Returns the ratio of the circumference of a circle to its diameter, specified by the constant, π. -
Math.Pow Viper Method
Returns a specified number raised to the specified power. -
Math.Random Viper Method
Returns a random integer. -
Math.Round Viper Method
Rounds the specified number to the nearest integer. -
Math.SetRandomSeed Viper Method
Sets a new seed for random number generation. -
Math.Sign Viper Method
Returns a value indicating the sign of the specified number. -
Math.Sin Viper Method
Returns the sine of the specified angle. -
Math.Sqrt Viper Method
Returns the square root of a specified number. -
Math.Tan Viper Method
Returns the tangent of the specified angle.
- Macro
- Macro Parameters
- Macro Parameter Properties
-
Vipers
-
Global Viper Methods
- AIM Viper Class
- Audit Viper Class
- Buffer Viper Class
- Cache Viper Class
- CacheFile Viper Class
- Calendar Viper Class
- Channel Viper Class
- Char Viper Class
- Cms Viper Class
- ContentType Viper Class
- Convert Viper Class
- Database Viper Class
- DataTable Viper Class
- DateTime Viper Class
- Debug Viper Class
- DigiD Viper Class
- Env Viper Class
- FileSystem Viper Class
- FlexLayout Viper Class
- Html Viper Class
- Html.Color Viper Class
- Html.Css Viper Class
- Image Viper Class
- ImageProperties Viper Class
- ItemComments Viper Class
- ItemData Viper Class
- License Viper Class
- Locale Viper Class
- Logging Viper Class
- Login Viper Class
-
- Math.Abs Viper Method
- Math.Acos Viper Method
- Math.Asin Viper Method
- Math.Atan Viper Method
- Math.Ceiling Viper Method
- Math.Cos Viper Method
- Math.E Viper Method
- Math.Exp Viper Method
- Math.float.max Viper Method
- Math.float.min Viper Method
- Math.Floor Viper Method
- Math.Hex Viper Method
- Math.int.max Viper Method
- Math.int.min Viper Method
- Math.Log Viper Method
- Math.Log10 Viper Method
- Math.Max Viper Method
- Math.Min Viper Method
- Math.Pi Viper Method
- Math.Pow Viper Method
- Math.Random Viper Method
- Math.Round Viper Method
- Math.SetRandomSeed Viper Method
- Math.Sign Viper Method
- Math.Sin Viper Method
- Math.Sqrt Viper Method
- Math.Tan Viper Method
- Payment Viper Class
- Personalization Viper Class
- PlaceHolder Viper Class
- Poll Viper Class
- Publication Viper Class
- RenderTemplate Viper Class
- Request Viper Class
- Response Viper Class
- Scf Viper Class
- Security Viper Class
- Session Viper Class
- Site Viper Class
- Smartlet Viper Class
- SmartletEditor Viper Class
- SmartletPreset Viper Class
- Smi Viper Class
- SmiData Viper Class
- Spice Viper Class
- Sql Viper Class
- StandardsCompliance Viper Class
- Storage Viper Class
- String Viper Class
- SXML Viper Class
- Sys Viper Class
- Tags Viper Class
- Translation Viper Class
- Url Viper Class
- User Viper Class
- UserItemFeedback Viper Class
- Xml Viper Class
- Local Viper Methods
-
Global Viper Methods
- SXML Data Types
- Examples
- Tips & Tricks