R rogel a. tolentino Member Licensed User Longtime User Oct 9, 2018 #1 using comand bellow the output are stated at the rightside of each command Log(NumberFormat(12345.6789, 0, 2)) 'output "12,345.68" sample no 1 Log(NumberFormat(1, 3 ,0)) 'output "001" sample no 2 Is there any technique that the output must have no comma in thousands and no 00 display like in sample no 2
using comand bellow the output are stated at the rightside of each command Log(NumberFormat(12345.6789, 0, 2)) 'output "12,345.68" sample no 1 Log(NumberFormat(1, 3 ,0)) 'output "001" sample no 2 Is there any technique that the output must have no comma in thousands and no 00 display like in sample no 2
R Roycefer Well-Known Member Licensed User Longtime User Oct 9, 2018 #2 Code: Copy Log(NumberFormat2(12345.6789,1,2,0,False)) Log(NumberFormat2(1,1,2,0,False)) Upvote 0
Semen Matusovskiy Well-Known Member Licensed User Oct 10, 2018 #3 Or you can use method decimalFormat in small smLocale library ( jar file is less 3K). https://www.b4x.com/android/forum/threads/locale-jar.96761/#post-610385 Upvote 0
Or you can use method decimalFormat in small smLocale library ( jar file is less 3K). https://www.b4x.com/android/forum/threads/locale-jar.96761/#post-610385