Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-178643

Floor values in storage decimal types - Command - /data /execute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.15.2
    • None
    • Plausible
    • Commands

      Hello !

       

      When I try to store decimal informations like player position, with the following command :

      /execute store result storage minecraft:test PosX double 1 run data get entity @p Pos[0] ;

      the storage value is the floor of the taken value. I see that with the following command :

      /data get storage test PosX .

      I got 33.931265216151d for the first one and 33.0d for the second.

      I have this problem for these types : double ; float

       

      Thanks a lot !

            Unassigned Unassigned
            Tchooki G.
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: