pub fn scalbn<F: Float>(x: F, n: i32) -> FExpand description
Scale the exponent.
From N3220:
The scalbn and scalbln functions compute
x * b^n, whereb = FLT_RADIXif the return type of the function is a standard floating type, orb = 10if the return type of the function is a decimal floating type. A range error occurs for some finite x, depending on n.[…]
scalbn(±0, n)returns±0.scalbn(x, 0)returnsx.scalbn(±∞, n)returns±∞.If the calculation does not overflow or underflow, the returned value is exact and independent of the current rounding direction mode.