Einzelnen Beitrag anzeigen

Benutzerbild von Khabarakh
Khabarakh

Registriert seit: 18. Aug 2004
Ort: Brackenheim VS08 Pro
2.876 Beiträge
 
#2

Re: Problem mit d := System.Double.Parse(TextBox1.Text);

  Alt 20. Mär 2006, 17:21
Jaja, die allseits beliebte Hilfe...
Zitat:
integral-digits
A series of digits specifying the integral part of the number. Runs of integral-digits can be partitioned by a group-separator symbol. (For example, in some cultures a comma (,) separates groups of thousands.) Integral-digits can be absent if there are fractional-digits.

'.'
A culture-specific decimal point symbol.
Der Punkt wird also als Tausender-Trennzeichen erkannt, wobei 1.25 einfach als 125 gesehen wird.
Aber mehrere Kommata oder Buchstaben (außer e) - das musst du mir zeigen .

Boo-Interpreter, .NET 2.0
Code:
>>> System.Double.Parse("123,45,5");
System.FormatException: Die Eingabezeichenfolge hat das falsche Format.
   bei System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   bei System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   bei System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
   bei System.Double.Parse(String s)
   bei Input7Module.Main(String[] argv)
Sebastian
Moderator in der EE
  Mit Zitat antworten Zitat