API ReferenceNamespacesmathOn this pagemath Pine math.*. Thin wrappers over AssemblyScript's Math so Pine code ports as written; Math.* (capital M) keeps working too. math.random is left out on purpose: a strategy must replay identically in backtest and live. Variables e phi pi rphi Functions abs acos asin atan avg ceil cos exp floor log log10 max min pow round roundToMintick sign sin sqrt sum tan todegrees toradians