Fixed error in results of fmtf(0.01)

This commit is contained in:
Revar Desmera 2019-11-11 11:26:18 -08:00
parent d999822355
commit 7c3f913050
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,28];
BOSL_VERSION = [2,0,29];
// Section: BOSL Library Version Functions