In 1.14.2 there is a negative zero for both the X & Z coordinates.
[media]Linked issues
is duplicated by 7
Attachments
Comments 9
yes i'm well aware of how it works, those are the cords for where you are on the block. in the XYZ: it says -0/73/-0
No, it says
-0.263 / 73.36776 / -0.598
That then gets rounded down to
-1 / 73 / -1
here: https://youtu.be/tqzAw-wiCsk , I made a quick video of all the cords from X:1 Z:1 all the way to X:-1 Z:-1 & all the cords in between. Show does the negative zero still round down to a negative one?
Not sure what you're getting at; the XYZ line shows the decimal number (not rounded to a whole number) and the Block line under that rounds it downward to a whole number. 1.5 rounds down to 1, 0.5 to 0, -0.5 to -1, and -1.5 to -2. -0.5 (negative one-half) is just as valid of a number as +0.5 or -1.5 is. "-0" (without a decimal point) doesn't appear in the "Block" row in the video as far as I can tell.
While it isn't what the original reporter meant, there is an inconsistency related to -0 in the F3 menu that could warrant reopening this issue.
Teleport commands can specify -0.0, which results in the F3 menu displaying -0.000 instead of 0.000 in the XYZ row. However, checking the player's NBT data reveals that their position is 0.0d, not -0.0d.
Since the debug menu is seemingly intended to accurately represent the player's current position as stated by the NBT data, it should read 0.000 in that situation instead of -0.000.
There is no "-0" in your screenshots. Only the decimals (such as -0.263 and -0.598), which get rounded down as expected in the line below.
This is not a bug. This is how numbers work.