setlocale

K

Kevin Humphreys

Hi There,
I have a problem when doing a arithmetic calculation on 2 values with the
Polish Regional settings on Windows 2000.

So in the code I have
TotalValue = ((Txt_Qty.value) * (Txt_Price.value))
Txt_ExtendedPricePerLine.value = TotalValue

So if the above is calculated with the following 2 values Txt_Qty.value =
56, Txt_Price.value = 52.45 then Txt_ExtendedPricePerLine.value gets a value
of 2937,2

How can I get this changed to 2937.2?

I used setLocale("en-gb") but this does not work.

Your help is much appreciated.

Kevin.
 
E

Evertjan.

Kevin Humphreys wrote on 14 mrt 2005 in
microsoft.public.inetserver.asp.general:
Hi There,
I have a problem when doing a arithmetic calculation on 2 values with
the Polish Regional settings on Windows 2000.

So in the code I have
TotalValue = ((Txt_Qty.value) * (Txt_Price.value))
Txt_ExtendedPricePerLine.value = TotalValue

So if the above is calculated with the following 2 values
Txt_Qty.value = 56, Txt_Price.value = 52.45 then
Txt_ExtendedPricePerLine.value gets a value of 2937,2

How can I get this changed to 2937.2?

What is this .value business?
We are talking serverside ASP vbscript?


response.write replace(price,",",".")
 

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

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top