We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, As I understand precision controls the number of significant digits.
precision
However, this means that close to zero, the grid is finer, while farther away it gets coarser. For example:
<svg> <path d="m 100.501 .999"/> </svg>
Now if I run it with --set-precision=3, it produces the following:
--set-precision=3
<svg> <path d="m101 0.999"/> </svg>
I suggest to either change the behavior to round to decimal places, or to introduce a new option that implements that kind of rounding.
For example: --set-rounding=N will round numbers to the nearest 1e-N. This would work like python's round built-in method.
--set-rounding=N
1e-N
built-in
The text was updated successfully, but these errors were encountered:
Basically a duplicate of #141.
See comments there for some thoughts.
Sorry, something went wrong.
No branches or pull requests
Hey,
As I understand
precision
controls the number of significant digits.However, this means that close to zero, the grid is finer, while farther away it gets coarser. For example:
Now if I run it with
--set-precision=3
, it produces the following:I suggest to either change the behavior to round to decimal places, or to introduce a new option that implements that kind of rounding.
For example:
--set-rounding=N
will round numbers to the nearest1e-N
. This would work like python's roundbuilt-in
method.The text was updated successfully, but these errors were encountered: