fast floor

Spacen Jasset spacenjasset at yahoo.co.uk
Thu Oct 10 15:27:08 PDT 2013


Hello,

I am after a fast floor function; In fact a fast truncation and 
conversion to integer. I see that std.math takes a real, and that 
std.c.math takes a double.

Is there a quicker function, and what might cast(int)1.5f do?

Regards,

Spacen.


More information about the Digitalmars-d-learn mailing list