From b703b7dd09a04005647ceea94c359b0d936f912e Mon Sep 17 00:00:00 2001 From: neviyn Date: Wed, 22 Jul 2020 14:27:41 +0100 Subject: [PATCH] Exported float equality function --- src/tuple.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuple.nim b/src/tuple.nim index edeac61..f20a7bb 100644 --- a/src/tuple.nim +++ b/src/tuple.nim @@ -3,7 +3,7 @@ from math import sqrt const eps = 1.0e-7 ## Epsilon used for float comparisons. -proc `=~` *(x, y: float): bool = +proc `=~`*(x, y: float): bool = result = abs(x - y) < eps type