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

@aceworks-studio/math

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aceworks-studio/math

A set of Luau utility functions related to math or numbers

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

checks version GitHub top language license npm

@aceworks-studio/math

A set of utility functions related to math or numbers.

Installation

Add @aceworks-studio/math in your dependencies:

yarn add @aceworks-studio/math

Or if you are using npm:

npm install @aceworks-studio/math

Content

isFinite

function isFinite(value: number): boolean

Returns true if the number not equal to infinity (or negative infinity) or NaN.

isInteger

function isInteger(value: number): boolean

Returns true if the number is finite and a whole number (no decimal part).

isNaN

function isNaN(value: number): boolean

Returns true if the number is NaN.

lerp

function lerp(initialValue: number, finalValue: number, alpha: number): number

Returns a number interpolated between an initial value and a final value using a number alpha between 0 and 1.

License

This project is available under the MIT license. See LICENSE.txt for details.

Other Lua Environments Support

If you would like to use this library on a Lua environment where it is currently incompatible, open an issue (or comment on an existing one) to request the appropriate modifications.

The library uses darklua to process its code.

Keywords

FAQs

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