Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

double vs arbitrary precision in 3MF #65

Open
martinweismann opened this issue Jan 20, 2023 · 0 comments
Open

double vs arbitrary precision in 3MF #65

martinweismann opened this issue Jan 20, 2023 · 0 comments

Comments

@martinweismann
Copy link
Member

In the XSD we use xs:double. https://github.com/3MFConsortium/spec_core/blob/master/3MF%20Core%20Specification.md#appendix-b1-3mf-xsd-schema

The definition of xs:double says https://www.oreilly.com/library/view/xml-schema/0596002521/re63.html

Note that the lexical spaces of xs:float and xs:double are exactly the same; the only difference is the precision used to convert the values in the value space.

However, in the spec itself we write

The decimal values representing the coordinates can be recorded to arbitrary precision.

I think the intent is arbitrary precision, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant