Disable NaN and Inf

Jonathan Crapuchettes jcrapuchettes at gmail.com
Fri Feb 5 23:14:55 PST 2010


I would like to divide one array by another using the slice syntax so that I can 
benefit from the vectorized operation, but I am running into a problem. Some of 
the numbers is my denominator array are 0, producing NaNs and Infs in the result.

My question is: Is there a way to force 0/0 and x/0 to result in 0?

Thank you,
JC



More information about the Digitalmars-d mailing list