Socket
Socket
Sign inDemoInstall

@stdlib/number-float64-base-from-words

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/number-float64-base-from-words

Create a double-precision floating-point number from a higher order word and a lower order word.


Version published
Weekly downloads
425K
decreased by-0.65%
Maintainers
4
Weekly downloads
 
Created

What is @stdlib/number-float64-base-from-words?

@stdlib/number-float64-base-from-words is a utility package that allows you to create a double-precision floating-point number from higher and lower order words (32-bit integers). This can be useful in low-level programming tasks, such as manipulating the binary representation of floating-point numbers.

What are @stdlib/number-float64-base-from-words's main functionalities?

Create a double-precision floating-point number from words

This feature allows you to create a double-precision floating-point number by specifying the higher and lower order words. In this example, the high word is 1074266112 and the low word is 0, which combine to form the number 3.14.

const fromWords = require('@stdlib/number-float64-base-from-words');
const high = 1074266112;
const low = 0;
const num = fromWords(high, low);
console.log(num); // 3.14

Other packages similar to @stdlib/number-float64-base-from-words

Keywords

FAQs

Package last updated on 22 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc