Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "number/float32/base/to-word/docs/types/index.d"

Index

Functions

Functions

Export assignment toWordf

  • toWordf(x: number): number
  • Returns an unsigned 32-bit integer corresponding to the IEEE 754 binary representation of a single-precision floating-point number.

    Parameters

    • x: number

      single-precision floating-point number

    Returns number

    unsigned 32-bit integer

    Example

    var float64ToFloat32 = require( `@stdlib/number/float64/base/to-float32` );
    
    var f32 = float64ToFloat32( 1.337 );
    // returns 1.3370000123977661
    
    var w = toWordf( f32 ); // => 0 01111111 01010110010001011010001
    // returns 1068180177