A Alessandra Pellegri Active Member Licensed User Longtime User May 27, 2020 #1 I have to convert very big numbers to string without scientific form but using decimal form. But if I do something like this: B4X: dim tt as string = Power(2,54) I obtain someting like 2.xxxE17. How could I do ? Thank you
I have to convert very big numbers to string without scientific form but using decimal form. But if I do something like this: B4X: dim tt as string = Power(2,54) I obtain someting like 2.xxxE17. How could I do ? Thank you
LucaMs Expert Licensed User Longtime User May 27, 2020 #2 Use NumberFormat (or, better, NumberFormat2) B4X: Dim tt As String = NumberFormat2(Power(2,54), 1, 2, 0, True) Log(tt) 18,014,398,509,481,984 (my dollars ?) Upvote 0
Use NumberFormat (or, better, NumberFormat2) B4X: Dim tt As String = NumberFormat2(Power(2,54), 1, 2, 0, True) Log(tt) 18,014,398,509,481,984 (my dollars ?)
A Alessandra Pellegri Active Member Licensed User Longtime User May 28, 2020 #3 Thank you! ? Upvote 0