Returns the character at the specified index. Thus you refer to the constant pi as MathPI and you call the sine function as Mathsin x where x is the methods argument. Mathtanx Returns the tangent of x.
Mathroundx Returns the value of the number x rounded to the nearest integer.
If you want to override operator precedence you can put parentheses round the parts that you want to be explicitly dealt with first. The Mathrandom function returns a floating-point pseudo-random number in the range 0 to less than 1 inclusive of 0 but not 1 with approximately uniform distribution over that range which you can then scale to your desired range. Examples of PI-var value_demo Math. Towards the lesser value.