4 ms·
This is a really bad example. Allowing constants like π to be passed to a function is the opposite of what you should do. There is only one correct value. Peri
by petters 9y ago
This is a really bad example. Allowing constants like π to be passed to a function is the opposite of what you should do.
There is only one correct value. Period.
- gkya 9y agoYou can imagine a case where the function has to verify an answer to a problem where the pi is assumed to be 3. Say e.g. writing a maths quiz, an online course, etc.