Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

round command

Status
Not open for further replies.

elly00

Technical User
Joined
Jun 30, 2011
Messages
69
Location
IT
hi

we are using vbs reading from a sql table
As yo know the decimal separator for sql server is "."

Now trying to run a round command it doesn't work because it's waiting for "," as separator..is that possible?

So If I run round(76.25) it doesn't work
If I run round (76,25) it works correctly..
 
What language have you got set on your PC?
 
italian settings
 
Ok - so you are retrieving the data as text rather than as a number ... so you could try

round(replace("76.25", ".",",")) ' Convert to European decimal separator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top