[Gambas-user] Float equality

Bruce adamnt42 at gmail.com
Sat Oct 31 03:25:09 CET 2020


On 31/10/20 12:44 pm, Jussi Lahtinen wrote:
> If Abs(fA - fB) <= fPrecision Then Print "Equal"
> 
> What do you mean by efficient? Fastest?
> 
> Jussi

Efficient... fastest?, least code?,  I don't know actually.
I was typing a line as in your answer above and it suddenly looked very 
"clunky". The longer I looked at it the worse it looked, so I thought 
I'd better check my sanity level.

Thanks
bruce



More information about the User mailing list