[Gambas-user] Float equality

Bruce adamnt42 at gmail.com
Sat Oct 31 04:16:08 CET 2020


On 31/10/20 12:55 pm, Jussi Lahtinen wrote:
> This is faster:
> If (fA - fPrecision) < fB And If (fA + fPrecision) > fB Then Print "Equal"
> 
> Jussi
> 

Ooh I like that!
Gave it a check on 20,000 float pairs and it is significantly faster!

tx
bruce


More information about the User mailing list