
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@aceworks-studio/math
Advanced tools
A set of utility functions related to math or numbers.
Add @aceworks-studio/math
in your dependencies:
yarn add @aceworks-studio/math
Or if you are using npm
:
npm install @aceworks-studio/math
function isFinite(value: number): boolean
Returns true
if the number not equal to infinity (or negative infinity) or NaN
.
function isInteger(value: number): boolean
Returns true
if the number is finite and a whole number (no decimal part).
function isSafeInteger(value: number): boolean
Returns true
if the number is finite, a whole number (no decimal part) and no other number rounds to it.
function isNaN(value: number): boolean
Returns true
if the number is NaN
.
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.
function round(value: number, decimals: number?): number
Returns a number rounded with the given decimals, or rounded to the nearest integer.
This project is available under the MIT license. See LICENSE.txt for details.
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.
FAQs
A set of Luau utility functions related to math or numbers
The npm package @aceworks-studio/math receives a total of 1 weekly downloads. As such, @aceworks-studio/math popularity was classified as not popular.
We found that @aceworks-studio/math demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.