Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

float-exponent

mikolalysenko11MIT1.0.0

Extracts the previous power of 2 floating point number

floating, point, exponent, prevPow2

readme

float-exponent

Extracts the exponent from a floating point number, effectively rounding down to the previous power of 2 for non-denormal numbers. For denormals returns 2^-1024.

require('float-exponent')(x)

Returns the previous power of 2 for x

License

(c) 2015 Mikola Lysenko. MIT License