MathUtils

Stable Version 3.0.4 (O11)
Also available for 10, 9, 8
Published on 7 Jul (6 days ago) by 
Created on 19 March 2014
Documentation

An extension which exposes mathematics actions, including rounding, trigonometry, ceil, floor, PI, E, logarithms, simple areas.

The actions available are

  • Math_Acos(n: decimal): decimal
  • Math_AreaCircle(r: decimal): decimal
  • Math_AreaEllipse(a: decimal, b: decimal): decimal
  • Math_AreaRect(w: decimal, h: decimal): decimal
  • Math_AreaSector(r: decimal, angle: decimal): decimal
  • Math_AreaSquare(side: decimal): decimal
  • Math_AreaTriangle(n: decimal, decimal, decimal): decimal
  • Math_Asin(n: decimal): decimal
  • Math_Atan(n: decimal): decimal
  • Math_Atan2(y: decimal, x: decimal): decimal
  • Math_Ceiling(n: decimal): decimal
  • Math_Cos(n: decimal): decimal
  • Math_Cosh(n: decimal): decimal
  • Math_DivRem(a: int, b: int): result: int, remainder: int
  • Math_E(): decimal
  • Math_Exp(n: decimal): decimal
  • Math_Floor(n: decimal): decimal
  • Math_Log(n: decimal): decimal
  • Math_Log10(n: decimal): decimal
  • Math_Log2(n: decimal): decimal
  • Math_LogBase(n: decimal, b: decimal): decimal
  • Math_Pi(): decimal
  • Math_Random(max: int): int
  • Math_RandomRange(min: int, max: int): int
  • Math_RoundAwayFromZero(n: decimal, decimals: int = 0): decimal
  • Math_RoundToEven(n: decimal, decimals: int = 0): decimal
  • Math_Sign(n: decimal): int
  • Math_Sin(n: decimal): decimal
  • Math_Sinh(n: decimal): decimal
  • Math_Sqrt(n: decimal): decimal
  • Math_Truncate(n: decimal): decimal


Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Justin James who created this component.
Dependencies
MathUtils has no dependencies.