mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-28 23:39:36 +00:00
Fixed error in results of fmtf(0.01)
This commit is contained in:
parent
d999822355
commit
7c3f913050
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,28];
|
||||
BOSL_VERSION = [2,0,29];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue