> Thank's Tim and all
>
> I think the problem is getting bigger :-(
>
> look this
>
> put 30*(1+(50/100))
> -- 0
>
> How can I make director calculates 50/100 for example???
>
>
> Rodrigo Peres
Hi Rodrigo
By default when all values used in a computation are integers, the result
will be an integer, If one's a float, the reulst will be a float. You should
manually make one of the first values in a series of computations (in this
case 50 or 100) to a float, by adding a decimal point and a zero.
Why that results in 0 is still a mystery to me. It should return 30 as
50/100 is 0
0+1 is 1
1*30 is 30!
If you made, e.g 50 a float (50.0)
then:
50.0 / 100 = 0.5
0.5 + 1 = 1.5
1.5 * 30 = 45.0
Pekka
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]