Page 1 of 1
you ate 0 grams?
Posted: Fri Sep 01, 2006 8:33 am
by fishfin
Posted: Fri Sep 01, 2006 9:11 am
by april
I also have got the same line for one of my chars yesterday. And its not even the first time this appears. Before this my char has eaten all of his smoked meat and then 0g of grilled meat.
1640-1.08: Tu suvalgei 0 gramų savo rūkyta mėsa. (You ate 0g of your smoked meat)
1640-1.08: Tu suvalgei visą savo kepta mėsa. (You ate all of your grilled meat)
Posted: Fri Sep 01, 2006 9:21 am
by Chris Johnson
No its not a bug - it's rounding
for instance 0.45g rounded to no decimal places is 0g
Posted: Fri Sep 01, 2006 11:13 am
by fishfin
Is there anyway to change how it rounds?
Posted: Fri Sep 01, 2006 11:15 am
by Chris Johnson
There is no need to - its not a bug
Posted: Fri Sep 01, 2006 12:58 pm
by april
Well i guess its OK then.
Thank you for explaning anyway

Posted: Fri Sep 01, 2006 1:02 pm
by wichita
Wait wait wait.....you want to change how it rounds so that it will round up and you will eat more food, just to satisfy the grammar?

I think this is the first time I have heard players complaining about not eating enough of their food.

Posted: Fri Sep 01, 2006 1:17 pm
by notsure
Or complaining about grammar?/?
notsure

Posted: Fri Sep 01, 2006 3:16 pm
by deadboy
notsure wrote:Or complaining about grammar?/?
notsure

No, people have yelled at Pie enough

Posted: Wed Sep 06, 2006 2:02 am
by Elros
The reason it says "0 grams" is probably because in the programing the Variable is type "Integer" instead of a "Double" which means that it only shows "real numbers"(0, 1, 2, 3, 4 ect...) and not "mixed numbers"(0.45, 1.97, 2.56 ect...). If the variable is mixed it will just round it to the nearest whole number. Hence:
0.45 = 0

Posted: Wed Sep 06, 2006 8:15 am
by Talapus
Elros wrote:If the variable is mixed it will just round it to the nearest whole number.
I believe it always rounds down, never up.
Posted: Wed Sep 06, 2006 3:40 pm
by Elros
Oh ok, I am not a Cantr programmer so I was just comparing it to other programing I have done.