.NET 3.5 - how to change default number separator

  • Thread starter Thread starter bim-bom
  • Start date Start date
B

bim-bom

Hi,
how to change a default number separator from a colon to comma (I have
1,23 , I want 1.23) - used in Double.ToString and Double.Parse. I can
change it by:
Application.CurrentCulture = new CultureInfo("en-US");
, but it changes many other things... I want just to change a separator.

Thanks in advance!
 
bim-bom said:
how to change a default number separator from a colon to comma (I have
1,23 , I want 1.23) - used in Double.ToString and Double.Parse. I can
change it by:
Application.CurrentCulture = new CultureInfo("en-US");
, but it changes many other things... I want just to change a separator.

double ToString has overload that takes a CultueInfo as
argument - in that case it only effects the one conversion.

Arne
 
Back
Top