↧
Comment by CPlus on Decimal point as a binary operation
With no leading zeros, 10^-c would be just one, which is not necessarily desirable.
View ArticleComment by CPlus on What obstacles prevented C and C++ from standardizing π?
But... hex floating point constants are already a thing in C.
View ArticleComment by CPlus on What are the different ways of handling multiple return...
@user That would be the responsibility of the caller to ensure otherwise.
View ArticleComment by CPlus on What syntax could be used to implement both an...
@supercat Squared can be easily emulated by multiplying the number by itself.
View ArticleComment by CPlus on What obstacles prevented C and C++ from standardizing π?
If they can define the sin, asin, tan, atan, etc. functions, they could just define M_PI as having the same value that atan(1)*4 would produce.
View ArticleAnswer by CPlus for Is it plausible to let modulo-by-zero have a well-defined...
In theory this could work since as you said, there is no possible 'real' calculation that could produce that value.In practice, unless the hardware is specifically designed to produce that value for a...
View Article