Double value not correct on Device

Posted by Clue on Stack Overflow See other posts from Stack Overflow or by Clue
Published on 2012-09-16T17:08:25Z Indexed on 2012/09/16 21:37 UTC
Read the original article Hit count: 312

Filed under:
|
|
|
int min = Int32.Parse(minutebox.Text);
double kj = Convert.ToDouble(a.kj);
double res = ((kj * op.koerpergewicht) * min);
textbox.Text = res.ToString();

Shows me the correct number (with its punctuation -> i. e. 2.33) on my English WP7-Emulator. However it doesn't work on my Device, which is set to German.

The value is correct but the point, comma or whatever in that double value isn't shown correct.

43.22 on Emulator -> 4322 on Device

Why is that?

© Stack Overflow or respective owner

Related posts about c#

Related posts about string