mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-10 07:54:13 +02:00
Fixed error in results of fmtf(0.01)
This commit is contained in:
@@ -433,7 +433,7 @@ function fmtf(f,sig=12) =
|
|||||||
whole=floor(f),
|
whole=floor(f),
|
||||||
part=floor((f-whole)*pow(10,sig-e-1)+0.5)
|
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
|
// 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
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user