import { curryN } from 'ramda';
/**
* Converts double-precision 64-bit binary format IEEE 754 to signed 32 bit integer number.
*
* @func toInteger32
* @aliases toInt32
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.28.0|v2.28.0}
* @category Math
* @sig Number -> Number
* @param {number} number A number
* @return {number} A signed 32-bit integer number
* @see {@link RA.toUInteger32|toUInteger32}, {@link http://speakingjs.com/es5/ch11.html#integers_via_bitwise_operators}
* @example
*
* RA.toInteger32(2 ** 35); // => 0
* RA.toInteger32(2 ** 30); // => 1073741824
*/
// eslint-disable-next-line no-bitwise
const toInteger32 = curryN(1, (val) => val >> 0);
export default toInteger32;