469,343 Members | 5,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

setlocale

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.
Jul 22 '05 #1
1 2079
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,",",".")

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dariusz | last post: by
3 posts views Thread by transam | last post: by
3 posts views Thread by Ksenia Marasanova | last post: by
3 posts views Thread by Damien Elmes | last post: by
3 posts views Thread by J Trauntvein | last post: by
3 posts views Thread by Schraalhans Keukenmeester | last post: by
reply views Thread by Paul Lautman | last post: by
7 posts views Thread by Steven Woody | last post: by
5 posts views Thread by yogeshmk | last post: by
reply views Thread by bestbikeever | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.