Re: returned value from function

2001-06-17 Thread mike cash
  > > Also, is it really a must to declare variables used in computation to be > > global in scope? I tried declaring the variable vola1 as local (set vola1 = > > 0.0) but when i test the value in the message window it returned a > > value. Why is this? > >Don't know about the rest of your q

Re: SV: returned value from function

2001-06-15 Thread 903939N
From: Roy C. Crisman Incorrect. the floatprecision only changes the number of decimal places that display/result. Director ALWAYS uses the full precision to calculate values. -- Welcome to Director -- x = .3 y = .4 z = .9 set the floatprecision = 2 put x -- 0.00 put y -- 0.00 put

returned value from function

2001-06-15 Thread Bruce Epstein - Zeus Productions
At 11:52 AM -0400 06/15/01, Lingo-L Digest wrote: > cvalue1 = float(1.0 * (s * exp(-(divi1) * timeperiod)) *\ > cum1_comput(1.0 * d1)) -- this part calls the function The above line has a typo. It should be "cum1_compute" not "cum1_comput" That may well just have been an error in th

Re: returned value from function

2001-06-15 Thread Irv Kalb
Ellen, A couple of problems/concepts here. (First, your clock is set a few hours into the future, so all responses show up before your question :) ) There is no need for any of the "global" statements in your "compute_prices" handler. These variables are only used in that handler - that is

Re: returned value from function

2001-06-15 Thread Court Batson
> Also, is it really a must to declare variables used in computation to be > global in scope? I tried declaring the variable vola1 as local (set vola1 = > 0.0) but when i test the value in the message window it returned a > value. Why is this? Don't know about the rest of your query, but as fa

RE: returned value from function

2001-06-15 Thread Pekka Buttler
; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Jonatan Wallgren > Sent: 15. kesäkuuta 2001 12:32 > To: [EMAIL PROTECTED] > Subject: SV: returned value from function > > > Hi Ellen > > I haven´t checked the code thoroughly but I think it's a flo

SV: returned value from function

2001-06-15 Thread Jonatan Wallgren
juni 2001 02:09 Till: [EMAIL PROTECTED] Ämne: returned value from function Hello lists, I have this problem with the values returned after calling a function handler. Below are the handler definitions. this is the handler that calls the function cum1_compute on compute_prices

returned value from function

2001-06-15 Thread Ellen C. Largo
Hello lists, I have this problem with the values returned after calling a function handler. Below are the handler definitions. this is the handler that calls the function cum1_compute on compute_prices -- global variable declarations global s, x, vola, rate, div, days global