Converting decimal to another decimal with a different culture

J

Jan tde Witt

Hi,

I have a webform which has the culture set to NL-nl so the decimals have the
comma as the decimalseperator.. However, my database is using the US-en
culture so I need to convert the NL-nl decimal to a new decimal with the
EN-us culture (so it will have the period as a decimalseperator).

How can I do this?

THX
 
J

Jeff Johnson

I have a webform which has the culture set to NL-nl so the decimals have
the comma as the decimalseperator.. However, my database is using the
US-en culture so I need to convert the NL-nl decimal to a new decimal with
the EN-us culture (so it will have the period as a decimalseperator).

How can I do this?

If in your code you're handling this value as a decimal data type then it
doesn't matter. Numbers are numbers are numbers. The thousands separator and
decimal point are for DISPLAY only; they have no bearing on how the number
is STORED.
 
J

Jeff Johnson

I have a webform which has the culture set to NL-nl so the decimals have
the comma as the decimalseperator.. However, my database is using the
US-en culture so I need to convert the NL-nl decimal to a new decimal with
the EN-us culture (so it will have the period as a decimalseperator).

How can I do this?

By the way, what does this question have to do with WINDOWS forms?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top