Mark.S Member Licensed User May 17, 2018 #1 I need to round up (or down) negative numbers to two decimal points. an example would be -0.056 to -0.06 I've tried the obvious, Round2(-0.056) which returns -0.56 any simple answer?
I need to round up (or down) negative numbers to two decimal points. an example would be -0.056 to -0.06 I've tried the obvious, Round2(-0.056) which returns -0.56 any simple answer?
M Mahares Expert Licensed User Longtime User May 17, 2018 #2 Mark.S said: any simple answer? Click to expand... B4X: Dim MyDouble As Double=-0.056 MyDouble=NumberFormat(MyDouble,1,2) Log("here: " & MyDouble) displays: here: -0.06 Upvote 0
Mark.S said: any simple answer? Click to expand... B4X: Dim MyDouble As Double=-0.056 MyDouble=NumberFormat(MyDouble,1,2) Log("here: " & MyDouble) displays: here: -0.06