Reason for not supporting float/double etc in attributes? #8570
Unanswered
wonbinkanglg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I wanted to declare some custom attributes for containing scaling value, in double/float.
I noticed flatc will give error claiming unsupported type. Also noted on doc, only string and int types are supported.
Any idea why?
I am considering adding double support by parsing string containing real numbers with decimal point as double, eg) "0.001". Seeing how this is rather simple matter, was wondering if there was a strict reason to forbid floats for attributes.
Beta Was this translation helpful? Give feedback.
All reactions