Sub Button1_Click
Dim strValue As String = "12345,678"
Log(InvertiSegniSeparatoriStr(strValue, 1, 2, 2, True))
End Sub
Public Sub InvertiSegniSeparatori(Num As Double, MinIntegers As Int, MaxFractions As Int, MinFractions As Int, Grouping As Boolean) As String
Dim strNum As String = NumberFormat2(Num, MinIntegers, MaxFractions, MinFractions, Grouping)
Return strNum.Replace(",", "°").Replace(".", ",").Replace("°", ".")
End Sub
Public Sub InvertiSegniSeparatoriStr(Num As String, MinIntegers As Int, MaxFractions As Int, MinFractions As Int, Grouping As Boolean) As String
' NOTA: usa InvertiSegniSeparatori.
Dim Dbl As Double = Num.Replace(",", "°").Replace(".", ",").Replace("°", ".")
Return InvertiSegniSeparatori(Dbl, MinIntegers, MaxFractions, MinFractions, Grouping)
End Sub