[Mono-dev] Parse methods

Kamil Skalski kamil.skalski at gmail.com
Wed Feb 1 10:18:37 EST 2006


Maybe it is related to locale? In some languages, like mine, '.' is used as
tousand mark and ',' as decimal separator.
Maybe in your locale it is also parsed this way somehow? Try "1,1"

1 Feb 2006 15:13:29 -0000, Mayur Devendra Punekar <
mayurpunekar at rediffmail.com>:
>
> hi Zoltan,
>
> here is my test case
>
> public class Test{
> public static void Main(string[] argv){
>
>              double d;
>
>           string s = "5.4" ;
>
>           d = Double.Parse(s);
>
>           System.Console.WriteLine(d);
>      }
>
> }
>
> output: 54
>
> - I m suing Mono 1.1.10 with Debian machine
>
>
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>


--
Kamil Skalski
http://nazgul.omega.pl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060201/c4f6e058/attachment.html 


More information about the Mono-devel-list mailing list