Re: Constant Functions

new topic     » goto parent     » topic index » view thread      » older message » newer message

>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
___________________________________________________________

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu