FormatNumber With MultiLocale?
Feb 11, 2010I am facing a problem with FormatNumber functions as follows,
'default locale : Georgian
SetLocale("1033") 'changing the Locale to US
var1 = "1,2"
[code].....
I am facing a problem with FormatNumber functions as follows,
'default locale : Georgian
SetLocale("1033") 'changing the Locale to US
var1 = "1,2"
[code].....
Is there a .Net equivalent of the FormatNumber function?
View 5 RepliesIs there any max/min range of input for the first parameter of FormatNumber() function in VB.NET?As I am sending 99999999999999.99 (which is the maximum limit a column could hold in my sql database) to FormatNumber() it is returning 100,000,000,000,000.00.
View 4 RepliesHow do I force FormatNumber to use a "-" to separate every "000"
Depending on my users culture on their computer
the result looks like "123 456 789.1235" or "123,456,789.1235"
How do I force it
Dim A As Decimal = "123456789.123456"
Dim B As String = FormatNumber(A, 4)