-1
I need to transform the result of a value of As Double
for the Brazilian numerical standard that uses comma instead of dot (and also maintain only 2 decimal places), thus:
' variaveis de teste ' valores esperados de saida
Dim t1 as double = 123 ' ~> 123,00
Dim t2 as double = 123.123 ' ~> 123,12
Dim t3 as double = 123123132112321321.123 ' ~> 123123132112321321,12
Dim t4 as double = 0.123 ' ~> 0,12
Dim t4 as double = 0.158123 ' ~> 0,16
That’s right! Thank you very much! I was already thinking about some crazy things like
ToString().Replace()
rs– LeandroLuk