pliroforikos Active Member Licensed User Mar 12, 2021 #1 Can anyone explain log output? B4X: Log(5/0) 'Show Infinity Log(5/0 > 2) 'Show True Log(2.2 > 3 And 5/0 > 2) 'Show False Last edited: Mar 12, 2021
Can anyone explain log output? B4X: Log(5/0) 'Show Infinity Log(5/0 > 2) 'Show True Log(2.2 > 3 And 5/0 > 2) 'Show False
Erel B4X founder Staff member Licensed User Longtime User Mar 12, 2021 #2 B4X: Log(5/0) 'Infinity Log(-5/0) '-Infinity Log(Sqrt(-1)) 'NaN (not a number) Log(5/0 > 2) 'True Log(2.2 > 3 And 5/0 > 2) 'False The underlying Java types system supports +infinity and -infinity for doubles. So a positive number divided by zero will return +infinity. It is larger than 0 to Log(5 / 0 > 2) returns true
B4X: Log(5/0) 'Infinity Log(-5/0) '-Infinity Log(Sqrt(-1)) 'NaN (not a number) Log(5/0 > 2) 'True Log(2.2 > 3 And 5/0 > 2) 'False The underlying Java types system supports +infinity and -infinity for doubles. So a positive number divided by zero will return +infinity. It is larger than 0 to Log(5 / 0 > 2) returns true