Skip to main content
Inspiring
July 23, 2019
Question

photoshop keeps adding decimals

  • July 23, 2019
  • 4 replies
  • 10134 views

I'm numerically transforming elements and often PSD adds random decimals to whatever I input. Eg: if i type 320px this becomes 320.001px or 319.89px

What's causing this and how do I stop it?

    4 replies

    Dmytro Khomiak
    Participant
    January 24, 2022

    @Samuel Weeks @shansipora @민지홍39569693 
    I have found an issue. It works for me.
    1. I came back to legacy free transform. Turn on this checkbox

    2. Turn on "snap to"

     

     

     

    Participant
    June 24, 2022

    bizarre but it works! 

    Dmytro Khomiak
    Participant
    January 24, 2022

    Hi? You have decimal coordinates like this:

    Change them to whole numbers and then change the size to whole numbers.

    However, photoshop doesn't work correctly with pixel greed and transformation. It bothers when you have the whole value and after transforming decimal.

     

     

    Participant
    April 14, 2022

    Im having exactly the same issue! I'll write a post later today I hope.

    민지홍39569693
    Participant
    March 5, 2020

    Nobody wants a decimal point as a designer as you know well.

    I have the same problem with mowglivj.. after the latest CC update. plz accept this bug and fix it 😞

    I just made vector but sometimes it has the decimal position and size automatically

     

     

     

    shansipora
    Participant
    March 14, 2020

    I have this problem as well. I'm a designer, and it is entirely irritating as anti-aliassing should not occur if you don't specifically plan for it. It's got nothing to do with mowglivj's 'machine'. I had this problem on my last macBook Pro, and I've just bought a new one on which Photoshop has the excact same problem. A colleague of mine (working on a Windows computer) has it too. I think it's a recent problem and it only started happening about a year ago, but I'm not sure.


    If anyone knows a real sollution, I'd be so grateful. 

    Samuel Weeks
    Participant
    November 11, 2020

    Still having the same issue on the latest version of Photoshop (v 22.0). Entering a specific width value (e.g. '1920 px') and Photoshop automatically replaces it with something like '1920.04 px' as soon as I hit Enter. Incredibly annoying! 

    mowglivjAuthor
    Inspiring
    July 23, 2019

    This gets worse. Now I input 145px and I get 144.89 instead. If I select the same element again it tells me it's 144px.... what is going on?

    JJMack
    Community Expert
    Community Expert
    July 23, 2019

    Math answers are not always integers.   There may be fraction in the correct result.    However there can never be a fraction of a pixel. Any calculation that results in a fractional pixel will be rounded the nearest full pixel in the document.   If you transform a layer constrained so it does not distort the math required will likely not result in an answer that is a  whole integer.  So you will see numbers like you are seeing.   It is not possible to store a fraction of a pixel.  Pixels have no size only a single color value is stored for a pixel's color the closest thing to Pixel size is Print Resolution.  Which is the size pixel the image will be printed with the image Pixels density. An image is a matrix of pixels.

    JJMack
    mowglivjAuthor
    Inspiring
    July 23, 2019

    Please read my post!

    There's no math involved at all. I'm entering 240px in the width and this is coming up as 240.001 or whatever random decimal place and I don't have constraint switched on which incidentally shouldn't make any difference.