Fw: [Mono-list] Numbers with ","

Jorge Bastos mysql.jorge at decimal.pt
Sat Feb 11 06:11:39 EST 2006


I just replace the value like replace(val,",",".")


----- Original Message ----- 
From: "Paulo Augusto" <PauloMorfeo at portugalmail.pt>
To: <mono-list at lists.ximian.com>
Sent: Saturday, February 11, 2006 12:56 AM
Subject: [Mono-list] Numbers with ","


> In portuguese (in fact, every language i know except english), numbers
> are separated by a "," comma, instead of by a "." dot.
> 
> So, when my mono program needs a number from an Entry():
> Convert.ToSingle (string);
> and then i want to pass that number to MySql through an sql string:
> float.ToString();
> results in a string that has a "," which brakes the sql string.
> 
> Anyone has any idea on what's the best way to handle this localisation
> issue?
> 
> I tried working around it with:
> string.Replace (char, char);
> and
> string.Replace (string, string);
> to the resulting string but i think both are broken since they do not
> work at all.
> 
> One would think this issue would be frequent but i do not seem to be
> able to find any information at all anywhere about it.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list