473,379 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

.NET 3.5 - how to change default number separator

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!
Nov 8 '08 #1
1 3113
bim-bom wrote:
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
Nov 8 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Francesco | last post by:
Hi, I've a question... is it possible to change the default separator in the stream operator ">>" (for example from the blank space " " to the comma "," ) ? Here is an example... I want to...
16
by: Douglas | last post by:
Gday, How would I format a number so that: TheValue = 32500 Displays in the TextBox as: $32,500.00
5
by: Hrvoje Voda | last post by:
What is the char number for Escape button ? IS there a list for all char numbers on windows? Hrcko
2
by: kathy | last post by:
what is the better way to determine if a string is number or not?
13
by: sonald | last post by:
Hi, Can anybody tell me how to change the text delimiter in FastCSV Parser ? By default the text delimiter is double quotes(") I want to change it to anything else... say a pipe (|).. can anyone...
52
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I convert a Number into a String with exactly 2 decimal places?...
9
by: Paulo da Silva | last post by:
Hi. I have just seen that csv module, more exactly the Dialect class, does not have any variable to specify the "floating point" character! In portuguese this is ','. Not '.'. 3.1415 -3,1415. I...
5
by: =?ISO-8859-15?Q?Tobias_Schr=F6er?= | last post by:
Hi, I'd like to validate a number input using a regular expression. This would be done by "\d*". Now the input may have a fdecimal separator, wich would be matched by "\d*(\.|,)\d*" (allowing...
5
by: sillyr | last post by:
Hi- I'm using Access 2007. I wanted to change a default value for a field that previously had no default value. I though it would be easy- just set the default value setting to the number t hat I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.