you ate 0 grams?

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

User avatar
fishfin
Posts: 490
Joined: Mon Mar 20, 2006 12:38 pm
Location: Nanning, China

you ate 0 grams?

Postby fishfin » Fri Sep 01, 2006 8:33 am

1640-1.07: You ate 0 grams of your grilled meat.

:?: :?: :?: :?: :?:

Is this a bug?
The following statement is not true.

The previous statement is not true.
User avatar
april
Posts: 46
Joined: Thu Aug 24, 2006 9:58 pm
Location: Lithuania, Kaunas

Postby april » Fri Sep 01, 2006 9:11 am

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)
User avatar
Chris Johnson
Posts: 2903
Joined: Wed Dec 01, 2004 3:26 pm
Location: East Sussex, United Kingdom
Contact:

Postby Chris Johnson » Fri Sep 01, 2006 9:21 am

No its not a bug - it's rounding

for instance 0.45g rounded to no decimal places is 0g
User avatar
fishfin
Posts: 490
Joined: Mon Mar 20, 2006 12:38 pm
Location: Nanning, China

Postby fishfin » Fri Sep 01, 2006 11:13 am

Is there anyway to change how it rounds?
The following statement is not true.



The previous statement is not true.
User avatar
Chris Johnson
Posts: 2903
Joined: Wed Dec 01, 2004 3:26 pm
Location: East Sussex, United Kingdom
Contact:

Postby Chris Johnson » Fri Sep 01, 2006 11:15 am

There is no need to - its not a bug
User avatar
april
Posts: 46
Joined: Thu Aug 24, 2006 9:58 pm
Location: Lithuania, Kaunas

Postby april » Fri Sep 01, 2006 12:58 pm

Well i guess its OK then.

Thank you for explaning anyway :roll:
User avatar
wichita
Administrator Emeritus
Posts: 4427
Joined: Mon Jan 17, 2005 6:46 pm
Location: Suomessa!

Postby wichita » Fri Sep 01, 2006 1:02 pm

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? :shock: I think this is the first time I have heard players complaining about not eating enough of their food. ;)
"Y-O-U! It's just two extra letters! Come on, people! This is the internet, not a barn!" --Kid President
User avatar
notsure
Posts: 1062
Joined: Mon Dec 19, 2005 5:54 pm

Postby notsure » Fri Sep 01, 2006 1:17 pm

Or complaining about grammar?/? :shock:

notsure :?
User avatar
deadboy
Posts: 1488
Joined: Mon Jan 16, 2006 6:41 pm
Location: England

Postby deadboy » Fri Sep 01, 2006 3:16 pm

notsure wrote:Or complaining about grammar?/? :shock:

notsure :?


No, people have yelled at Pie enough :P
"Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we" - George W. Bush
User avatar
Elros
Posts: 1511
Joined: Sat Jul 22, 2006 5:41 pm
Location: South Carolina, USA

Postby Elros » Wed Sep 06, 2006 2:02 am

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

:D
Talapus
Posts: 1452
Joined: Thu Jun 02, 2005 9:05 pm
Location: Montana

Postby Talapus » Wed Sep 06, 2006 8:15 am

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.
User avatar
Elros
Posts: 1511
Joined: Sat Jul 22, 2006 5:41 pm
Location: South Carolina, USA

Postby Elros » Wed Sep 06, 2006 3:40 pm

Oh ok, I am not a Cantr programmer so I was just comparing it to other programing I have done.
Every action has a consequence.

Return to “General Support”

Who is online

Users browsing this forum: No registered users and 1 guest