After the latest update figma is acting weird rounding up numbers. When I create a rectangle, I have double digit decimals in the X, Y, W and H coordinates
Turning on “Snap to pixel grid” should fix the issue. You can do this either via the quick actions or the view settings in the upper right corner. A shortcut also exists, but not sure if it is the same globally.