[community-group] How to define negative zero in a design tokens file (#184)

romainmenke has just created a new issue for https://github.com/design-tokens/community-group:

== How to define negative zero in a design tokens file ==
`-0` vs. `0` is useful in calculations.

But `JSON.stringify(-0)` removes the sign : `0`
I think the specification needs to adopt specific serialisation and parsing steps for edge cases likes these.

Tools will need to implement custom JSON serialisers and parsers if this is to be done correctly.

Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/184 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 17 November 2022 08:53:36 UTC