![](https://poptalk.scrubbles.tech/pictrs/image/e9507f30-d29f-46a1-ae06-6857fbcf9701.png)
![](https://lemmy.ml/pictrs/image/c0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png)
Correct, JSON can handle any precision, because it’s just dumped as a string anyway, just not enclosed in the ""
. However, as you mentioned, as soon as it comes through the parser it’ll put it into an underlying float value. In C# I create a save high precision attribute that will take the value and put it directly into a decimal
. In JS I’m sure there’s some way to do that, but that parser is way less extensible compared to C#. However, this also all assumes you know the client will parse it correctly, overriding the default behavior. Safest is to just send it as a string, and then create your parsers to automatically send to and from strings
I went on facebook as an experiment for a couple of weeks, try it out again, even take part.
Algorithm quickly caught on that I liked some interests - transit, trains, Taylor Swift, and EVs.
It was fine for a while, made a few comments, engaged with a few people, both who agreed and not.
All of a sudden over the last week I’m seeing just pure propaganda - BS “headlines” like “50% of Americans regret buying their EV”. Absolutely unproven horseshit, but there it is.
Facebook is absolutely culpable in this mess. They straight up promote it, and for me I was pro all of that stuff, it switched on me.