intSqrt

Calculates the square root of an integer number as an integer number.

@safe pure nothrow @nogc @safe pure nothrow @nogc
ubyte
intSqrt
(
const ubyte value
)

Examples

assert(intSqrt(4) == 2);
assert(intSqrt(9) == 3);
assert(intSqrt(10) == 3);

Meta