Math Object

Navigation:  Widget Designer > Script Language > Object and Member Notation (dot syntax) >

Math Object

prev main next

Navigation:  Widget Designer > Script Language > Object and Member Notation (dot syntax) >

Math Object

prev main next

Loading...

Show/Hide hidden text

This chapter shows how to script with the Math object and its members which offer a wide variety of mathematical functions. It always returns the computed result as a numeric value without changing the argument itself.

Find here a list of all available methods. Remember to assign a suiting type to the variable for the result, e.g. "Double". In the interests of clarity, the result is rounded to two digits.

As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.

hmtoggle_arrow1Math.Abs
hmtoggle_arrow1Math.Acos
hmtoggle_arrow1Math.Asin
hmtoggle_arrow1Math.Atan
hmtoggle_arrow1Math.Ceiling
hmtoggle_arrow1Math.Cos
hmtoggle_arrow1Math.Deg2Rad
hmtoggle_arrow1Math.E
hmtoggle_arrow1Math.Exp
hmtoggle_arrow1Math.Floor
hmtoggle_arrow1Math.Log
hmtoggle_arrow1Math.Log10
hmtoggle_arrow1Math.Max
hmtoggle_arrow1Math.Min
hmtoggle_arrow1Math.Mod
hmtoggle_arrow1Math.Pi
hmtoggle_arrow1Math.Pow
hmtoggle_arrow1Math.Rad2Deg
hmtoggle_arrow1Math.Random
hmtoggle_arrow1Math.Round
hmtoggle_arrow1Math.Sign
hmtoggle_arrow1Math.Sin
hmtoggle_arrow1Math.Sqrt
hmtoggle_arrow1Math.Tan
hmtoggle_arrow1Math.Truncate