vecino Well-Known Member Licensed User Longtime User Mar 28, 2013 #1 Hello, currently NumberFormat2( fValor, 0,2,2, True) returns, eg 1,234.15 And I need to return: 1.234,15 How I can get it? Thanks and regards
Hello, currently NumberFormat2( fValor, 0,2,2, True) returns, eg 1,234.15 And I need to return: 1.234,15 How I can get it? Thanks and regards
klaus Expert Licensed User Longtime User Mar 28, 2013 #2 B4X: Dim sValor As String sValor = NumberFormat2( fValor, 0,2,2, True) returns, eg 1,234.15 sValor = sValor.Replace(",", "*") ' replaces , by * sValor = sValor.Replace(".", ",") ' replaces . by , sValor = sValor.Replace("*", ".") ' replaces * by . Best regards. Upvote 0
B4X: Dim sValor As String sValor = NumberFormat2( fValor, 0,2,2, True) returns, eg 1,234.15 sValor = sValor.Replace(",", "*") ' replaces , by * sValor = sValor.Replace(".", ",") ' replaces . by , sValor = sValor.Replace("*", ".") ' replaces * by . Best regards.
vecino Well-Known Member Licensed User Longtime User Mar 28, 2013 #3 Thanks, I'll do that. Although I thought numberformat2 accept any parameters to do so. No problem, I'll use the traditional method Thanks Upvote 0
Thanks, I'll do that. Although I thought numberformat2 accept any parameters to do so. No problem, I'll use the traditional method Thanks