Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stdlib/array-float64

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/array-float64

Float64Array.

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
409K
increased by2.31%
Maintainers
4
Weekly downloads
 
Created

What is @stdlib/array-float64?

The @stdlib/array-float64 package provides a Float64Array, which is a typed array that represents an array of 64-bit floating point numbers. This package is part of the larger @stdlib library, which is a standard library for JavaScript and Node.js, providing a wide range of utilities and functions.

What are @stdlib/array-float64's main functionalities?

Creating a Float64Array

This feature allows you to create a new Float64Array from an array of numbers. The resulting typed array contains 64-bit floating point numbers.

const Float64Array = require('@stdlib/array-float64');
const arr = new Float64Array([1.0, 2.0, 3.0, 4.0]);
console.log(arr);

Accessing Elements

This feature allows you to access elements in the Float64Array using standard array indexing.

const Float64Array = require('@stdlib/array-float64');
const arr = new Float64Array([1.0, 2.0, 3.0, 4.0]);
console.log(arr[0]); // 1.0
console.log(arr[1]); // 2.0

Modifying Elements

This feature allows you to modify elements in the Float64Array by assigning new values to specific indices.

const Float64Array = require('@stdlib/array-float64');
const arr = new Float64Array([1.0, 2.0, 3.0, 4.0]);
arr[0] = 5.0;
console.log(arr[0]); // 5.0

Iterating Over Elements

This feature allows you to iterate over the elements of the Float64Array using a for loop.

const Float64Array = require('@stdlib/array-float64');
const arr = new Float64Array([1.0, 2.0, 3.0, 4.0]);
for (let i = 0; i < arr.length; i++) {
  console.log(arr[i]);
}

Other packages similar to @stdlib/array-float64

Keywords

FAQs

Package last updated on 14 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