Remainder wat

Adam D. Ruppe destructionator at gmail.com
Sun Mar 4 15:33:53 PST 2012


On Sunday, 4 March 2012 at 23:27:45 UTC, deadalnix wrote:
> I did, it doesn't address why in one case we have a floating 
> point error, and in the other a divide error

If you use literals, the compiler catches it at compile
time. "Error: divide by zero" happens when you run the
compiler.

If not, the operating system catches it at runtime.
"Floating point exception" happens when you run the
program.

There's nothing inconsistent about this; it is just
the difference between a compile time error and a
run time error.



More information about the Digitalmars-d mailing list