Non-locale-specific floating point numbers
I want to write some C# that converts between floating-point numbers and
strings in a non-locale-specific way. That is, I want decimal points always
to be ".", etc. The simple overloads of Double.ToString() and
Double.Parse() change their behavior depending on locale. I'm considering
creating a static en-us locale and passing it to the overloads of Parse and
ToString that take a locale, but is there a better way?
.
Relevant Pages
- Re: Non-locale-specific floating point numbers
... strings in a non-locale-specific way. ... The simple overloads of Double.ToStringand ... Double.Parsechange their behavior depending on locale. ... Instead of creating a static en-us, ... (microsoft.public.dotnet.languages.csharp) - Re: Non-locale-specific floating point numbers
... strings in a non-locale-specific way. ... Double.Parsechange their behavior depending on locale. ... creating a static en-us locale and passing it to the overloads of Parse ... Unless i'm mistaken a float is a float inependent of locale. ... (microsoft.public.dotnet.languages.csharp) - Re: Non-locale-specific floating point numbers
... Mike Schilling wrote: ... strings in a non-locale-specific way. ... I'm considering creating a static en-us locale and passing it to the overloads of Parse and ToString that take a locale, but is there a better way? ... (microsoft.public.dotnet.languages.csharp) - Re: How to check variables for uniqueness ?
... FI in English typography), so the correct uppercase version of those ... characters is the sequence SS. ... So you at least agree with me that it should be consistent with toUpperCase -- all strings should have a single canonical toUpperCase, a single canonical toLowerCase, both should define equivalence classes on the mixed-case input strings, these should be the SAME equivalence class, and equalsIgnoreCase should implement and embody the corresponding equivalence relation. ... The version that doesn't shouldn't surprise English speakers; the version that does shouldn't surprise anyone familiar with its locale-specific behavior for the locale actually used. ... (comp.lang.java.programmer) - Re: LANG, locale, unicode, setup.py and Debian packaging
... strings always, independent of locale. ... A wxPython treeview control (unicode build) ... os.listdirwith a unicode path passed to it ... (comp.lang.python) |
|