Quantcast
Channel: User CPlus - Programming Language Design and Implementation Stack Exchange
Browsing all 66 articles
Browse latest View live

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 Article


Comment by CPlus on What obstacles prevented C and C++ from standardizing π?

But... hex floating point constants are already a thing in C.

View Article


Comment 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 Article

Comment 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 Article

Comment 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 Article


Answer 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
Browsing all 66 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>