mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 21:58:27 +01:00
eps bug fix
This commit is contained in:
parent
ec915a7eaa
commit
0f55fb512e
@ -764,7 +764,7 @@ function matrix_strings(M, sig=4, eps=1e-9) =
|
|||||||
[for(entry=row)
|
[for(entry=row)
|
||||||
let(
|
let(
|
||||||
text = is_undef(entry) ? "und"
|
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),
|
: str_replace_char(fmt_float(entry, sig),"-",figure_dash),
|
||||||
have_dot = is_def(str_find(text, "."))
|
have_dot = is_def(str_find(text, "."))
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user