Skip to main content

U8_ISQRT_WITH_REMAINDER

Constant U8_ISQRT_WITH_REMAINDER 

Source
const U8_ISQRT_WITH_REMAINDER: [(u8, u8); 256];
🔬This is a nightly-only experimental API. (num_internals)
Expand description

This array stores the integer square roots and remainders of each u8 value. For example, U8_ISQRT_WITH_REMAINDER[17] will be (4, 1) because the integer square root of 17 is 4 and because 17 is 1 higher than 4 squared.