From 7c3f913050431fda64de52730b23220cac0e19e7 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 11 Nov 2019 11:26:18 -0800 Subject: [PATCH] Fixed error in results of fmtf(0.01) --- strings.scad | 2 +- version.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/strings.scad b/strings.scad index d5a39f9..a29cea6 100644 --- a/strings.scad +++ b/strings.scad @@ -433,7 +433,7 @@ function fmtf(f,sig=12) = whole=floor(f), part=floor((f-whole)*pow(10,sig-e-1)+0.5) ) - part>0? str(fmti(whole), str_strip_trailing(str(".",fmti(part,mindigits=sig-abs(e)-1)),"0.")) : fmti(whole); + part>0? str(fmti(whole), str_strip_trailing(str(".",fmti(part,mindigits=sig-e-1)),"0.")) : fmti(whole); // vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap diff --git a/version.scad b/version.scad index 736eebf..dc015cb 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,28]; +BOSL_VERSION = [2,0,29]; // Section: BOSL Library Version Functions