peacemaker Expert Licensed User Longtime User Aug 29, 2023 #1 HI, All 1) Why Log() function shows only 4 digits after the decimal dot ? 2) How to make math calculations correctly (logarithms...) with max decimal tolerance, without loss ? 3) How to see the calculation results with 6...8 digits after the dot ?
HI, All 1) Why Log() function shows only 4 digits after the decimal dot ? 2) How to make math calculations correctly (logarithms...) with max decimal tolerance, without loss ? 3) How to see the calculation results with 6...8 digits after the dot ?
Erel B4X founder Staff member Licensed User Longtime User Aug 30, 2023 #2 This is the default number formatting. Use NumberFormat to have more control: B4X: Dim l As String = NumberFormat(Logarithm(1000, 2), 0, 10) Log(l) Upvote 0
This is the default number formatting. Use NumberFormat to have more control: B4X: Dim l As String = NumberFormat(Logarithm(1000, 2), 0, 10) Log(l)