Garry's Mod Wiki

Revision Difference

math.pi#522282

<cat>libraryfunc</cat> # Not a function This is NOT a function, it's a variable containing the mathematical constant pi. (3.1415926535898) ⤶ For example: math.sin( math.pi ) will return 0.⤶ This is NOT a function, it's a variable containing the mathematical constant pi. (`3.1415926535898`) ⤶ See also: <page>Trigonometry</page>⤶ ⤶ ⤶ <example>⤶ <code>⤶ print( math.sin( math.pi ) )⤶ </code>⤶ <output>⤶ 0⤶ </output>⤶ </example>