3 ms·
What are you using the number for?
by mikequinlan 3y ago
What are you using the number for?
- amichail 3y agoSuppose it's not something that the user would see as a number. In that case, would you prefer 0.875 = 7/8 or 0.9? If both would work well, which would you put in the source?
- mikequinlan 3y agoI still need to understand the context. The last time I remember using a constant where it "didn't matter" what the exact number was, was maybe 30 years ago when we were manually allocating memory and had to decide to limit an array to an "even" number like 250 entries or to use the maximum that would fit (like 319 or something) and risk having to reduce it in later releases, possibly causing compatibility errors.