From 0f55fb512ec946fbffa2735ca79b25d98d91f299 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Fri, 1 Jan 2021 01:35:34 -0500 Subject: [PATCH] eps bug fix --- strings.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.scad b/strings.scad index 9e51960..051d450 100644 --- a/strings.scad +++ b/strings.scad @@ -764,7 +764,7 @@ function matrix_strings(M, sig=4, eps=1e-9) = [for(entry=row) let( text = is_undef(entry) ? "und" - : abs(entry) < 0 ? "0" // Replace hyphens with figure dashes + : abs(entry) < eps ? "0" // Replace hyphens with figure dashes : str_replace_char(fmt_float(entry, sig),"-",figure_dash), have_dot = is_def(str_find(text, ".")) )