> JSON does not have a proper integer type
What are the drawbacks to using the JavaScript Number (really a double float I think) datatype as an integer in an object representation language such as JSON? I've never seen a use case where e.g. 42 (int) could be confused with 42.0 (float). If your application needs specifically an int or a float, then the ingesting application knows that.If the answer is monetary values, then those should never be floats, and should not be represented in JSON as such. E.g. a dollar and a half should be represented as 150 cents. This follows even for sub-cent precision.
scala> (Long.MaxValue-1)
val res4: Long = 9223372036854775806
scala> (Long.MaxValue-1).toDouble.toLong
val res5: Long = 9223372036854775807
The fact that I used Scala is irrelevant here. That is true for many programming languages that 64 bit long and double types.But these are separate issues. For example, even with the scrollbars there can be a change between two behaviors: click on the empty bar jumps to that % or jumps by 1 page. And one can be a click and another a Shift-Click - where in the OS would you discover that??? And the scrollbar width - can only find a registry hack to restore that from some tech article/blog post/ etc, nothing in that waste of the Win 11 Settings app.
Go release date: 2012
ML: 1997
Knowing how to swap 2 variables and traverse data structures are fundamentals.
Regardless of how you lose weight the advice is and remains:
> Eat a minimum of 0.36 grams of protein per day, per pound of LEAN* body weight. Increasing to 0.5-0.7 grams of protein per day, per pound of LEAN* body weight for older adults or when undergoing weight loss.
*LEAN is a vital detail for overweight people, they commonly miscalculate protein requirements due to this. The easiest way for overweight people to determine their requirement, is just find an "ideal body weight calculator" online, enter height and gender, and then multiply THAT figure by 0.5-0.7.
For example a man who is 6' tall and 400 lbs should eat 62 grams of protein per day MINIMUM, but during weight loss 86-120 grams of protein per day. It is common, unfortunately, to read online people in this situation miscalculate this to 280(!) grams of protein per day which is incorrect and harms their weight-loss goals.
This goes beyond programming as well, I think it goes for most things in life.
Check with https://webglsamples.org if you don't believe it. All of it runs capped at 60 fps on Chrome for me, Firefox struggles to break 30 on mid tier settings in aquarium and stutters horribly throughout most of them. I'm sure it's fast at loading static sites, but I wouldn't ever use it to run any web app. On Windows they're both the same though, which is weird to me.