round random number


Author
Message
alasdair
alasdair
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 8, Visits: 8

Hallo,


I have an auction-task in which the participants play against the computer. The participants bet an amount of money up to 300 Cent and the computer bets a random amount. First I save both bets and devide them in order to display them in euro:



/ ontrialbegin = [values.bet_player = openended.bet.response / 100]


/ ontrialbegin = [values.bet_pc = round(rand(0,30)) / 10]



I use parallels on a mac and did there the programming. On this computer everything goes fine, but if I start the script on the computers in the lab, inquisit seems not to round the numbers. In most cases I get a floated number with lots of 9s and a 4 at the end. 


Maybe somebody of you could help me.


Thanks in advance


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
alasdair - 13 Years Ago
Dave - 13 Years Ago
alasdair - 13 Years Ago
Dave - 13 Years Ago
Dave - 13 Years Ago
                         thanks a lot!
I haven't had it in mind that the computer uses a...
alasdair - 13 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search