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

@rivo-ts/math

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rivo-ts/math

Type-level math operations for TypeScript. This package is essentially an independent part of the Rivo project which does not rely on `@rivo-ts/core`. Many other packages in the Rivo project depend on this package.

  • 0.0.0-dev.20240707.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@rivo-ts/math

Type-level math operations for TypeScript.

This package is essentially an independent part of the Rivo project which does not rely on @rivo-ts/core. Many other packages in the Rivo project depend on this package.

You can use it with any TypeScript project that needs type-level math operations, not just Rivo.

Usage

import type { Add, Div, Exp, Pow } from "@rivo-ts/math";

type R1 = Add<1339642.329553, -2775689265.941>;
//   ^?: -2774349623.611447
type R2 = Div<388.6, 15>;
//   ^?: 25.906666666666666
type R3 = Exp<3>;
//   ^?: 20.063392857142855
type R4 = Pow<2, 3>;
//   ^?: 8
type R5 = Pow<2, 0.5>;
//   ^?: 1.414212636572998

Keywords

FAQs

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