Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

pi()

Purpose

Returns the value of pi

Description

Returns an approximation of the value of the constant pi which is the ratio of a circle's circumference to its diameter (approximately 3.14159265) which is widely used in mathematics, specifically trigonometry and geometry.

Syntax

value = pi

Arguments

value An approximation of the value of pi

Example

clear()
radians( true )
centre = { gWidth() / 2, gHeight() / 2 }
for angle = 0 to 2 * pi step 0.005 loop
    col = { random( 101 ) / 100, random( 101 ) / 100, random( 101 ) / 100, 1.0 }
    result = sincos( angle )
    point = { 600 * result.y + centre.x, 300 * result.x + centre.y }
    line( centre, point, col )
    repeat
update()
sleep( 3 )

Associated Commands

acos(), asin(), atan(), atan2(), radians(), sin(), sinCos(), tan()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.