On Tuesday, 11 December 2018 at 14:16:05 UTC, Narxa wrote: > int var = floor(sqrt(n)) // where 'n' is a 'const int' You can just cast it to float: floor(sqrt( cast(float) n )); and it will work.