public static float scalb (float f, int scaleFactor)

Returns ` f`

×
2^{ scaleFactor} rounded as if performed
by a single correctly rounded floating-point multiply to a
member of the float value set. See the Java
Language Specification for a discussion of floating-point
value sets. If the exponent of the result is between `Float.MIN_EXPONENT`

and `Float.MAX_EXPONENT`

, the
answer is calculated exactly. If the exponent of the result
would be larger than ` Float.MAX_EXPONENT`

, an
infinity is returned. Note that if the result is subnormal,
precision may be lost; that is, when ` scalb(x, n)`

is subnormal, ` scalb(scalb(x, n), -n)`

may not equal
*x*. When the result is non-NaN, the result has the same
sign as ` f`

.

Special cases:

- If the first argument is NaN, NaN is returned.
- If the first argument is infinite, then an infinity of the same sign is returned.
- If the first argument is zero, then a zero of the same sign is returned.

`f` | number to be scaled by a power of two. | |

`scaleFactor` | power of 2 used to scale ` f` |

` f`

× 2^{ scaleFactor}

Diagram: Math