Elektrine lite

← Feed

@sabrinkmann@hachyderm.io

Post #2909166

2026-03-15 14:33 UTC

@grindhold@23.social I'm not 100% sure but if I see this correctly this a problem with the precision in the the "base implementation" see here https://github.com/w3c/rdf-concepts/issues/43 Thats why for the Fedify Implementtation of fep0837 I created this issue https://github.com/fedify-dev/fedify/issues/617 Is this the correct explaination @silverpill@mitra.social ?

Replies (1)

  • @silverpill@mitra.social 2026-03-15 17:31

    @sabrinkmann@hachyderm.io @grindhold@23.social It looks like the value is not required to be a string. However, it is a string in all examples, and my implementation also treats it as a string. I probably did that to avoid losing precision and to support very big numbers. In some programming languages, the float type is lossy (Python?), and in some the integer type has a relatively low maximum value (JavaScript?). Since precision is very important for currency amounts, and they can get quite big (for example, there is a popular cryptocurrency that can be divided into 10^18 units), I always serialize them as strings, to avoid issues during deserialization.

    Open ##2909167