Mojira Archive
MC-124223

'/data get' can return imprecise values

The bug

Running /data get can return imprecise values depending on the value type.

How to reproduce

  1. /summon armor_stand ~ ~ ~ {Pose:{Head:[0.01f,0.01f,0.01f]}}
  2. /data get entity @e[type=armor_stand,sort=nearest,limit=1] Pose.Head[0] 10000
    → Result is 99
  3. /data get entity @e[type=armor_stand,sort=nearest,limit=1]
    → NBT says [0.01f,0.01f,0.01f]. /data get is incorrectly rounding 0.01f to 0.009999

Won't Fix

Onnowhere

[Mojang] Nathan Adams

2018-01-13, 12:10 PM

2018-01-15, 05:42 PM

2018-01-15, 05:42 PM

2

1

Confirmed

/data-get

Minecraft 18w02a

-