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

Export to JSON may loose float values accuracy #335

Open
adamws opened this issue Aug 13, 2023 · 0 comments
Open

Export to JSON may loose float values accuracy #335

adamws opened this issue Aug 13, 2023 · 0 comments

Comments

@adamws
Copy link

adamws commented Aug 13, 2023

Exporting json from following layout (two first keys of Kinesis Advantage preset):

[{f:1,f2:2,w:0.675,h:0.85},"\nEsc",{x:0.075,w:0.675,h:0.85},"\nF1"],

results in following json file:

[
  [
    {
      "f": 1,
      "f2": 2,
      "w": 0.675,
      "h": 0.85
    },
    "\nEsc",
    {
      "x": 0.07499999999999996,
      "w": 0.675,
      "h": 0.85
    },
    "\nF1"
  ]
]

x property of second key lost accuracy.

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