LDraw.org Discussion Forums
Official precision? - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: General (https://forums.ldraw.org/forum-12.html)
+--- Forum: Official File Specifications/Standards (https://forums.ldraw.org/forum-32.html)
+--- Thread: Official precision? (/thread-24645.html)



Official precision? - Michael Horvath - 2021-05-27

Does the LDR/DAT file format have an official level of precision? To how many decimal places do we store numerical values in files?


RE: Official precision? - Orion Pobursky - 2021-05-27

(2021-05-27, 17:13)Michael Horvath Wrote: Does the LDR/DAT file format have an official level of precision? To how many decimal places do we store numerical values in files?

In file format spec, no.

In the Official Library spec, yes:
https://www.ldraw.org/article/512.html#precision
Note: This is only for files in the official library. While the file format is silent and the official library spec could be considered the de facto "standard" in most use cases, maximum precision is ultimately dependent on the data type that the LDraw editor in use uses to store the value listed.


RE: Official precision? - Matthew Morrison - 2021-06-05

(2021-05-27, 17:13)Michael Horvath Wrote: Does the LDR/DAT file format have an official level of precision? To how many decimal places do we store numerical values in files?

I've been told that 2 points of precision is enough for most things.


RE: Official precision? - Orion Pobursky - 2021-06-05

(2021-06-05, 1:51)Matthew Morrison Wrote: I've been told that 2 points of precision is enough for most things.

I would say 3 points best for rotation matrices in model files.


RE: Official precision? - Michael Horvath - 2021-06-09

(2021-06-05, 2:52)Orion Pobursky Wrote: I would say 3 points best for rotation matrices in model files.

I have been using 6 points for everything to be safe.