kionay

@kionay@lemmy.world

This profile is from a federated server and may be incomplete. Browse more on the original instance.

kionay,

ECMAScript spec says Math.random must be less than 1. I was about to stop there, but a thought occurred to me: could the multiply with a float make a number large enough to floor to a different value for large enough values? 🤔

I imagine it’d have to be a ridiculously large number to amount enough floating point imprecision to matter, if so.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #