#DesignerProperty: Key: MaxDecimals, DisplayName: Max decimals, FieldType: Int, DefaultValue: 5, Description: Sets the max number of allowed decimals needed to show a non-zero value before changing to scientific notation.
Type ValuesData (Show As Boolean, TextFont As B4XFont, TextSize As Float, TextColor As Int, TextHeight As Int, Left As Int, Top As Int, Width As Int, Height As Int, MidPont As Int, rectRight As B4XRect, rectCursor As B4XRect, MaxDigits As Int, MaxDecimals As Int)
Values.MaxDecimals = Props.Get("MaxDecimals") '<<<< added
'>>>> added this is useful as the fixed value of 2 seems too low
'something like 0.01 then shows as scientific notation, which will confuse users
'and is not really needed
'-------------------------------------------------------------------------------
Public Sub getMaxDecimals As Int
Return Values.MaxDecimals
End Sub
Public Sub setMaxDecimals (iMaxDecimals As Int)
Values.MaxDecimals = iMaxDecimals
End Sub