Max Integer Size #139

Open
opened 2022-03-06 14:44:58 +00:00 by cloudcoderuwu · 1 comment
cloudcoderuwu commented 2022-03-06 14:44:58 +00:00 (Migrated from github.com)

I am noticing a problem with long integers (in my case ID numbers from flickr) which when they are imported with gray matter they are incorrect. I assume this is due to floating point error.

A typical flickr API number is 72157688988508171 which is then cast to 72157688988508180

This is easy enough to avoid by adding string quotes to the ID but perhaps gray matter should detect these cases and properly cast to string or something?

I am noticing a problem with long integers (in my case ID numbers from flickr) which when they are imported with gray matter they are incorrect. I assume this is due to floating point error. A typical flickr API number is `72157688988508171` which is then cast to `72157688988508180` This is easy enough to avoid by adding string quotes to the ID but perhaps gray matter should detect these cases and properly cast to string or something?
cloudcoderuwu commented 2022-03-07 21:29:34 +00:00 (Migrated from github.com)

Is it possible to set the "type" of different YAML parameters in javascript (not typescript) so as to avoid this? Or to tell matter to interpret all parameters as strings?

Is it possible to set the "type" of different YAML parameters in javascript (not typescript) so as to avoid this? Or to tell matter to interpret all parameters as strings?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rtlabs-llm-agents/gms-gray-matter#139
No description provided.