duderino > learn > knowledge > snippets > math

nearly

bool nearly(in float a, in float b) // almost equals (for float comparisons)
    {return abs(a - b) < 0.001;}