#155165 - 2006-01-12 08:47 PM
Include/Call & Number
|
Yoann
Lurker
Registered: 2006-01-12
Posts: 2
|
Hello,
I start in KiXtart and I have some questions.
1. What's the difference between include and call functions ? 2. How can i get the result of a simple division (in floating point format) ?
Thanks.
|
|
Top
|
|
|
|
#155166 - 2006-01-12 09:17 PM
Re: Include/Call & Number
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#155169 - 2006-01-12 11:17 PM
Re: Include/Call & Number
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Let's add some confusion.
Exit won't exit/quit the script it it's inside a UDF or another called script
|
|
Top
|
|
|
|
#155171 - 2006-01-12 11:22 PM
Re: Include/Call & Number
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Quote:
EXIT wont exit the main script, if its inside a UDF inside an included script. My head hurts.
It won't from called either
|
|
Top
|
|
|
|
#155175 - 2006-01-13 10:27 AM
Re: Include/Call & Number
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
division = cdbl()
Careful, that's not quite the full story.
The result of Code:
CDbl(3/2)
Is "1.0" - it is floating point, however it is probably not the result you were looking for.
The result of Code:
CDbl(3)/2
Is "1.5", which is probably what you are after.
|
|
Top
|
|
|
|
#155176 - 2006-01-13 05:06 PM
Re: Include/Call & Number
|
Yoann
Lurker
Registered: 2006-01-12
Posts: 2
|
Thanks, all.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2175 anonymous users online.
|
|
|