inconsistent decimal precision
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Under Document Properties, with grid units set to Inches, grid spacing precision is limited to 4 decimal places, which makes working with designs for small parts difficult, as grids of 1/32" (.03125") or smaller fractional powers of 2 require more than 4 decimal places of precision. Grid spacing can be entered with higher precision via the XML editor, but the Document Properties UI should use the precision specified in "SVG output numeric precision", or some other defined constant, rather than being limited to 4 decimal places. This precision should apply to all objects, guides, grids, etc.
Forcing trailing zeros on decimal numbers makes for more tedious editing, as the zeros have to be deleted to make room for other digits. Numbers should be represented without trailing zeros. (eg 0.5 vs 0.5000 or 0.50000000) This ties into the decimal place precision limitation. Perhaps the numeric entry fields could behave differently, and accept values of any precision, to be reduced to the precision specified in the constant as suggested in the previous paragraph.
tags: | added: precision |
Christina Palmer wrote:
> the Document Properties UI should use the precision specified
> in "SVG output numeric precision"
This is a misunderstanding of the 'Numeric precision' setting for SVG Output: it defines the numbers of significant digits, not the number of decimal places (as is described in the tooltip of the setting) [1]. The numeric precision used for storing SVG data is not related to the number of decimal places in the GUI entry fields. Otherwise the workaround I showed you in the related Inkscape forum topic (using the XML Editor to enter more precise numbers for the grid spacing) would not work.
Related earlier requests (due to which the number of decimal places in the grid GUI was raised from 2 to current 4):
Bug #168574 “Grid setup truncate significant figures”
Bug #168689 “Grid and Guide precision”
Christina Palmer wrote:
> grid spacing precision is limited to 4 decimal places, which makes
> working with designs for small parts difficult
Basically what is happening here is precisely what a lead developer predicted in
Bug #166474 “4 digits precision for grid offset not enough?” (comment #1 ff)
<quote>
Why do you need the 5-digit precision for this? As you
understand we have to put a limit somewhere. If I make it 5
digits someone will complain that it's not 6, etc :)
</quote>
[1] <http:// en.wikipedia. org/wiki/ Significant_ figures> en.wikipedia. org/wiki/ Arithmetic_ precision>
<http://