In the process of converting from B4A to B4X.
As I understand it it is best to avoid using NumberFormat2.
No I need to show the average of a range of integer numbers and don't want to show scientific notation eg: Avg: 1.60018275E7.
I can do this fine with NumberFormat2, but not sure how to do it...
Hi,
It says that NumberFormat and NumberFormat2 is supported in BANano but I get a different behavior than in B4J.
If I use:
NumberFormat2(314.159265359, 1, 2, 0, False))
In B4J I get what I want:
314.16
In BANano I only get (wrong)
314
If I change MinimumFractions to 2 then I get (this is...
Hi,
the following code:
Dim joBA As JavaObject
joBA.InitializeStatic("anywheresoftware.b4a.BA")
Dim joNF As JavaObject
joNF.InitializeStatic("java.text.NumberFormat")
Dim ref As Reflector
ref.Target = ref.CreateObject2("java.util.Locale", Array As Object("sl"), Array As...
Hi,
after upgrade to B4A 8.0, NumberFormat2 doesn't take into account locale number format.
Dim joBA As JavaObject
joBA.InitializeStatic("anywheresoftware.b4a.BA")
Dim joNF As JavaObject
joNF.InitializeStatic("java.text.NumberFormat")
Dim ref As Reflector
ref.Target =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.