You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 8, 2026. It is now read-only.
Do we have a FAQ-like/best practices document? I'd like to see the question: "How do I represent IEEE-754 non-finite numbers like Nan or Infinity in IPLD?
I guess the answer is something along the line of:
This is application specific. If your application is using decimal numbers, it almost certainly is using IEEE-754 floating point arithmetics. You might not even put a thought into things like Infinity or NaN and hence don't really support it. Then the right approach can be to error if you encounter those values. If you don't want to fail hard on those values, you could use null for them (if you're using IPLD Schemas, use the nullable type modifier). If you want to preserve those values, use strings (if you're using IPLD Schemas, use an enum e.g.: