Re: comma as decimal point?



You mean using ASP and the Jet engine?
The above should be named a string, numbers have no points or commas.

usng ASP-vbs:

s1 = "22.5"
s2 = replace(s1,".",",")

usng ASP-jscript:

s1 = '22.5';
s2 = s1.replace(/\./,',');

This won't work, if I use 22,5 it gets rounded up to 23

So why do you need it then?

The field mut be an integer field.

id I use 22.5 (which i can't anyway for other reasons) nothing gets
stored at all. ?

Wouldn't it be sensible to show your code, only the offending part please!

I have to sum up these numbers later, can't use string for that (?)
Kim


.



Relevant Pages

  • Re: comma as decimal point?
    ... You mean using ASP and the Jet engine? ... usng ASP-vbs: ... The field mut be an integer field. ...
    (microsoft.public.inetserver.asp.db)
  • Re: comma as decimal point?
    ... The above should be named a string, numbers have no points or commas. ... usng ASP-vbs: ... You could store 22.5 or 22,5 as a string in a database field, but there ...
    (microsoft.public.inetserver.asp.db)

Loading