Hello, people!

The following case:
-------------------
int var = floor(sqrt(n)) // where 'n' is a 'const int'

Produces the following error:
-----------------------------
Error: std.math.sqrt called with argument types (const(int)) matches both: /usr/include/dmd/phobos/std/math.d(2067): std.math.sqrt(float x)
and:
/usr/include/dmd/phobos/std/math.d(2073): std.math.sqrt(real x)


Please, could you tell me how do I solve this?!

Thank you!

Reply via email to