473,666 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Decimal point is replaced with comma

A numeric field is shown differently on the Test and Production env. For
example 3.5 is shown as 3,5. Originally we thought this has something to do
with Regional Option, however both server have the same setting. Both server
have the same Web.Config file. I don't know what else could cause this. Any
help would be greatly appreciated. Thanks.
Nov 18 '05 #1
3 4327
I would still try to output the current culture on this page to see if this
is the same.

Could the conversion be done on the database server rather than on the web
server ?

Patrice

--

"Rasool" <ra************ **@translink.bc .ca> a écrit dans le message de
news:OH******** *****@TK2MSFTNG P11.phx.gbl...
A numeric field is shown differently on the Test and Production env. For
example 3.5 is shown as 3,5. Originally we thought this has something to do with Regional Option, however both server have the same setting. Both server have the same Web.Config file. I don't know what else could cause this. Any help would be greatly appreciated. Thanks.


Nov 18 '05 #2
If you don't mind would you please tel me how to output the current culture?
As for your second point; I have created another windows application based
on the same table on the same server and it shows the values correctly (with
decimal point).

"Patrice Scribe" <no****@nowhere .com> wrote in message
news:O$******** ******@tk2msftn gp13.phx.gbl...
I would still try to output the current culture on this page to see if this is the same.

Could the conversion be done on the database server rather than on the web
server ?

Patrice

--

"Rasool" <ra************ **@translink.bc .ca> a écrit dans le message de
news:OH******** *****@TK2MSFTNG P11.phx.gbl...
A numeric field is shown differently on the Test and Production env. For
example 3.5 is shown as 3,5. Originally we thought this has something to

do
with Regional Option, however both server have the same setting. Both

server
have the same Web.Config file. I don't know what else could cause this.

Any
help would be greatly appreciated. Thanks.

Nov 18 '05 #3
Rasool wrote:
If you don't mind would you please tel me how to output the current culture?
As for your second point; I have created another windows application based
on the same table on the same server and it shows the values correctly (with
decimal point).
The various Culture settings that may be affecting this include:

CultureInfo.Cur rentCulture.ToS tring()
CultureInfo.Cur rentUICulture.T oString()
CultureInfo.Ins talledUICulture .ToString()


"Patrice Scribe" <no****@nowhere .com> wrote in message
news:O$******** ******@tk2msftn gp13.phx.gbl...
I would still try to output the current culture on this page to see if


this
is the same.

Could the conversion be done on the database server rather than on the web
server ?

Patrice

--

"Rasool" <ra************ **@translink.bc .ca> a écrit dans le message de
news:OH****** *******@TK2MSFT NGP11.phx.gbl.. .
A numeric field is shown differently on the Test and Production env. For
example 3.5 is shown as 3,5. Originally we thought this has something to


do
with Regional Option, however both server have the same setting. Both


server
have the same Web.Config file. I don't know what else could cause this.


Any
help would be greatly appreciated. Thanks.


--
mikeb
Nov 18 '05 #4

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

Similar topics

3
9708
by: Kim Bundgaard | last post by:
Hi Any suggestion would be fine. I have installed DB2 Connect EE V8.1 (fixpak 4) at two different Windows 2000 Servers, both have the same regional settings. I am connecting to the same DB2 z/OS subsystem running V7 from a DB2 Command Window, and I do a "select decimal-field from table" - but at machine-a I get the field with comma as decimal delimiter, and at machine-b I get period as decimal delimiter.
6
25405
by: Tommy DN | last post by:
I think I've a simple question. I'm using the datatype "decimal". I need to build a sql - insert statement to save something in the database. But the problem is that the decimal - datatypes are written with a comma " , " and not " . ". So when I make the string: -- dim decimalvariable as decimal sql = "insert into table(decimalthing) values(" & decimalvariable & ")"
52
1565
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I convert a Number into a String with exactly 2 decimal places? ----------------------------------------------------------------------- When formatting money for example, to format 6.57634 to 6.58, 6.5 to 6.50, and 6 to 6.00? Rounding of x.xx5 is uncertain, as such numbers are not represented exactly.
19
3595
by: VK | last post by:
http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ b495b4898808fde0> is more than one month old - this may pose problem for posting over some news servers. This is why I'm starting a new one] I'd still like to finish this rounding mess. As a startup lemma we can take that VK is the worst programmer of all times and places: let's move from here forward please. The usability of any program depends on exact behavior...
4
4407
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi everyone! I'm using greece - greek in my control panel's regional options, and so, my decimal point is the comma (,), while it is the dot (.) for the sql server db, however, I'm facing trouble when I need to parse the sql server decimal as an asp.net double! For example:
1
3444
by: Twanne | last post by:
Hi, I've got some code in VBA where I calculate some numbers. Now some of them are large decimal numbers like -6,3216324E03. So in scientific notations. Now I need to add them to a table with an insert query. The query: db.Execute ("INSERT INTO tmpZscore (datum, leeftijd, lengte, ZscoreL, gewicht, ZscoreW, BMI, ZscoreB, IBW) VALUES('" & CStr(dag & "/" & maand & "/" & Jaar) & "','" & test & "','" & CStr(lengte) & "'," & CDbl(scoreL) & ",'"...
1
2723
by: Joza | last post by:
Hi everybody! I have question about setting decimal symbols... In some countries, for example in my country we use comma for decimal symbol, but in in some other countries it is decimal point. The problem is when I use comma and want to save data in database. For example if i want to save number 4,50 it saves like 450, but if i write 4.50 it regulary saves the number in that format. My question is how to make to program knows what to...
2
18421
by: KiP.Kolodziejczyk | last post by:
I 'd like to insert (via "bulk insert") between 10-20 files (about 300MB each) into one table. The problem is that in input files decimal point is written as "," and without leading zeros (i.e.: ",45"), and sever uses ".". So I 've got an "type mismatch" error. I can't re-build input file, as well as I can't change configuration of mssql sever. Is there any option to force the server to convert decimal point while importing?
2
24175
by: nomad | last post by:
Hi, I was wondering how I would be able to remove a decimal point from a string value i.e. 10000.0 to 10000. Appreciate any help on this.
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8780
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7378
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6189
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.