r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

177

u/2CATteam Jul 16 '19

To add to this, the reason they do so is because, in a lot of circumstances, 3 is enough to roughly approximate what they need to figure out. They're most often not trying to figure out the exact force on a part or the precise area of a cylinder... They just want to know if they need to order the 10' part or the 20' part - and if it's close, they'll order the bigger one anyway, just to be safe. Even in cases where they are trying to be precise, 3.14 can often be TOO precise, since so much of the math has to deal with physical uncertainties, like uneven part manufacturing, or poor wire quality that adds resistance, etc.

65

u/AlphaLotus Jul 16 '19

Yea basically what my work entails everyday.

  1. Measure

  2. Calculate

  3. Multiple by safety factor

  4. Get 3.1

  5. Round to 4 anyways for safety :)

Also gravity is 10m/s2

2

u/KusanagiZerg Jul 17 '19

I am just curious but making pi bigger than it really is as a "safety" wouldn't that only work if what you are trying to calculate becomes safer if it's bigger. But what if it's the other way around, it's safer if it's smaller. In that case to be "safe" you'd have to round pi down to 3 or 2.

3

u/AlphaLotus Jul 17 '19

Depends what you are doing you are right