Geländewert

User avatar
Orgrim
Bourlingueur
Posts: 97
Joined: Fri 15 Jan 2016, 12:39
Realm: Filgar

Geländewert

Postby Orgrim » Thu 06 Jul 2017, 21:07

Image

Richtiger Wert ist 64,98

Nach welcher Regel wird denn hier gerundet?
Ist das beabsichtigt oder ein Fehler?

User avatar
aknoth
Bâtisseur
Posts: 410
Joined: Thu 07 Jan 2016, 10:35
Realm: Fauconnia

Re: Geländewert

Postby aknoth » Sun 16 Jul 2017, 16:14

Sorry for an english answer.

My gess : for calculation "57.4 * .2" is stored/used rounded below => 11,4 and not 11,48. It depends how you declare your variables in the software.

Rankos
Bourlingueur
Posts: 69
Joined: Wed 06 Jan 2016, 08:51
Realm: Filgar

Re: Geländewert

Postby Rankos » Mon 17 Jul 2017, 16:10

really? you are able to declare floats with only one decimal place? :mrgreen:

I think the result of the operation isn't rounded down, it is truncated.

User avatar
Orgrim
Bourlingueur
Posts: 97
Joined: Fri 15 Jan 2016, 12:39
Realm: Filgar

Re: Geländewert

Postby Orgrim » Tue 18 Jul 2017, 07:43

Yes, the second comma is simply left out.

Question is: mistake or intention

User avatar
aknoth
Bâtisseur
Posts: 410
Joined: Thu 07 Jan 2016, 10:35
Realm: Fauconnia

Re: Geländewert

Postby aknoth » Tue 18 Jul 2017, 14:10

Rankos wrote:really? you are able to declare floats with only one decimal place? :mrgreen:

I think the result of the operation isn't rounded down, it is truncated.


You're right, I got confused with database storage


Return to “Support und Fehlermeldungen”

Who is online

Users browsing this forum: No registered users and 3 guests