473,401 Members | 2,146 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,401 software developers and data experts.

commas instead of dots???

Hi folks,

Just been having a play with my .net server space and have added a few basic
web forms and a couple of web services. I noticed that when I return double
precision values from the server and display these, the decimal point is
replaced by a comma?

For example,

51,12345 is returned instead of 51.12345

This problem also occurs sending double precision values to the server for
processing. If I want to pass 51.12345 to the server, the web form fails to
display, but if I pass 51,12345 i.e. with the comma, then it works fine?

Anyone have an idea what the deal is with this comma replacement thing which
is going on??

Thanks for any ideas,

Best Regards,
David
May 25 '06 #1
2 1121
David hi,

..net by default uses the computer's regional settings for the decimal
character and the thousand operand.
You should check Control panel/Regional Settings.

"David++" wrote:
Hi folks,

Just been having a play with my .net server space and have added a few basic
web forms and a couple of web services. I noticed that when I return double
precision values from the server and display these, the decimal point is
replaced by a comma?

For example,

51,12345 is returned instead of 51.12345

This problem also occurs sending double precision values to the server for
processing. If I want to pass 51.12345 to the server, the web form fails to
display, but if I pass 51,12345 i.e. with the comma, then it works fine?

Anyone have an idea what the deal is with this comma replacement thing which
is going on??

Thanks for any ideas,

Best Regards,
David

May 25 '06 #2
"WoodenSWord" wrote:
David hi,

.net by default uses the computer's regional settings for the decimal
character and the thousand operand.
You should check Control panel/Regional Settings.

"David++" wrote:

hi wooden sword,

thanks for your reply. yes you are right regional settings is the problem. i
found this article which explains how to define the regional settings or
'Culture' for individual asp pages, this seemed to do the trick for me.

http://msdn2.microsoft.com/en-US/library/bz9tc508.aspx

Cheers,
David
May 25 '06 #3

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

Similar topics

3
by: Crescionini Sascha | last post by:
hello ng does anyone have an idea how to check in an input field, if the value contains exactly two commas? examples: "gaga,gogo,gugu" or ",,gagaggigi" any ideas?
3
by: darren | last post by:
Hello, I am posting a html form to a php processing page, which produces a csv file from the form data. However if the user inputs a comma then it screws up my data. So i'd like to know how...
22
by: ineedyourluvin1 | last post by:
Hello all! I've been looking for a way to strip characters from strings such as a comma. This would be great for using a comma as a delimiter. I show you what I have right now. ...
27
by: Peter Ammon | last post by:
My code obfuscator gave me this: char buff; to which gcc retorted: "ISO C90 forbids variable-size array 'buff'" and checking the standard, it appears that commas are indeed forbidden...
4
by: striker | last post by:
I have a comma delimited text file that has multiple instances of multiple commas. Each file will contain approximatley 300 lines. For example: one, two, three,,,,four,five,,,,six one, two,...
3
by: Mike P | last post by:
I am trying to write a csv file to a database table, but the problem is that several fields have commas within them, so the code is reading the commas as the end of fields. My code is below. How...
5
by: hprYeV | last post by:
I have done a reasonable amount of programming in C++, but the other day I was talking to someone after a lecture in a course on Java who said that they had not been used to the syntax of the Java...
14
by: Adrienne Boswell | last post by:
Although this is a client side issue, I am also posting to asp.general in case there is someway to do this only server side (which I would prefer). Here's my form: <form method="post"...
11
by: Dooza | last post by:
Using ASP/VB I need to remove unwanted commas from the end of a field that will be use in an array. There are items in the field that are comma separated, so I don't want to remove them, just the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.