Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment fromWordf

  • fromWordf(word: number): number
  • Creates a single-precision floating-point number from an unsigned integer corresponding to an IEEE 754 binary representation.

    Parameters

    • word: number

      unsigned integer

    Returns number

    single-precision floating-point number

    Example

    var word = 1068180177; // => 0 01111111 01010110010001011010001
    
    var f32 = fromWordf( word ); // when printed, implicitly promoted to float64
    // returns 1.3370000123977661