Jump to content
You must now use your email address to sign in [click for more info] ×

Decimal Places for Units doesn't actually round to chosen units


Recommended Posts

This is going to be tricky to explain - I hope this makes sense.

 

I would expect that if I set the Decimal Places for Unit Types on points, for example, to 0, that my stroke width options would be limited to whole numbers when I use the slider to select a stroke width. What actually happens is that the slider is just displaying the nearest whole number to the actual stroke width.

 

For example, I set my decimal limit to 0 in preferences, I drag the slider for stroke width to 1, and draw a rectangle. I would assume that the stroke of the rectangle is exactly 1 pt.  This is NOT the case.

 

If I switch the decimal limit to 6, I see that the actual stroke of my rectangle is something like 1.002345. This can also be clearly seen using the pixel grid. The stroke I thought was exactly 1 pixel is visibly wider than grid lines set to one pixel.

 

I discovered this while trying to make a checkerboard pattern. I couldn't figure out why my rectangles, snapped to the grid, with stroke set to 0, seemed to have gaps. When I changed the decimal places to 6, I discovered the rectangles actually had strokes of 0.000238. 

 

So unless you type a whole number instead of using the slider, you can never be certain that your stroke is exactly what you want it to be. Even with 6 decimal places, sliding the slider to 1 could still actually be something like 1.00000039865. This is very problematic for pixel-perfect exports, and negates the entire purpose of the slider bar.

 

post-32029-0-60362300-1498679575_thumb.png

post-32029-0-24026000-1498679585_thumb.png

Link to comment
Share on other sites

I would expect that if I set the Decimal Places for Unit Types on points, for example, to 0, that my stroke width options would be limited to whole numbers when I use the slider to select a stroke width. What actually happens is that the slider is just displaying the nearest whole number to the actual stroke width.

 

I believe it's by design that the 'Decimal Places for Unit Types' setting only affects the display, not the internal values. If you want whole numbers, you can use the round() function to tweak the values in the Transform panel.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

Well that's highly disappointing. It's all the little things like this that keep me going back to Illustrator for new projects. Every time I give AD a chance, I end up getting annoyed and starting over in Illustrator. I really wanted to like this software, but I give up. 

Link to comment
Share on other sites

I agree this is problematic and tedious to circumvent.

 

Would be nice to have a pref setting for Mínimum Slider Increments where the user can input their preferred unit increment...

 

And/or a checkbox for the current decimal limit pref to specify if it's for display purposes or to actually round values to that setting.

2021 16” Macbook Pro w/ M1 Max 10c cpu /24c gpu, 32 GB RAM, 1TB SSD, Sonoma 14.4.1

2018 11" iPad Pro w/ A12X cpu/gpu, 256 GB, iPadOS 17

Link to comment
Share on other sites

It's be a good way to help for those "pixel perfect" scenarios (I thought the same but I then realized that it was just a visual thing).

 

Best regards!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.