Re: Constant Functions
- Posted by "Hawke'" <mikedeland at NETZERO.NET> Aug 23, 2000
- 395 views
>Can someone explain to me the concepts of a function and a constant? >thenk yew, >------Thomas to further explain these concepts, beyond what was replied so far.... try this as an example: ------------------------------------------- constant PI = 3.14159 --that is now a fixed value assigned to the word 'PI' function ComputeCircleArea(atom radius) atom area area = PI * radius * radius --pi * R^2 return area -- a function must return a value of some sort -- be that a number or a sequence end function -------------------------------------------- hope this helps --Hawke' ____________NetZero Free Internet Access and Email_________ Download Now http://www.netzero.net/download/index.html Request a CDROM 1-800-333-3633 ___________________________________________________________