Posts: 16
Threads: 7
Joined: Jul 2010
Reputation:
0
07-26-2010, 08:56 PM
Hi, I notice that round only works with ",", if the decimal part is separated with "." it doesn´t work.
Round(100.0)=1000
Is there any function that works with both decimal systems? And a function that works with "."?
Thanks
Posts: 54
Threads: 2
Joined: Jul 2010
Reputation:
0
07-27-2010, 10:51 AM
(This post was last modified: 07-27-2010, 10:51 AM by sasmitakumari.)
Hi pjeigenn,
I did not understand your question?
Rounding decimal should work, and the syntax is like this:
Round(expression[, numdecimalplaces])
Ex:
tt=Round(100.456) 'tt contains now 100
tt=Round(100.456, 2) 'tt contains now 100.46
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
07-27-2010, 10:54 AM
Round works correctly for both "," and "." depending on the regional setting of the system. check your regional setting at Control panel.
Posts: 54
Threads: 2
Joined: Jul 2010
Reputation:
0
07-27-2010, 11:19 AM
Hi Saket,
I have changed the regional setting to Spanish, but it did not work for me, how should be the syntax for that?
I have tried with following, it gives me syntax error.
tt=Round(123456789,1234) 'here ',' works as decimal
msgbox tt
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
07-27-2010, 12:24 PM
as I can remeber, there are some other settings too. I will see if I can get that.
may be pjeigenn can help us, to get it quickly.