alto/math-functions

Math functions for PHP

Maintainers

Package info

github.com/PhpAlto/alto-math-functions

pkg:composer/alto/math-functions

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

dev-main 2025-04-13 02:11 UTC

This package is auto-updated.

Last update: 2026-03-12 01:37:24 UTC


README

Installation

composer require alto/math-functions

Functions

clamp

Returns a value clamped between a minimum and maximum value.

clamp(float|int $value, float|int $min, float|int $max): float|int

in_range

Returns true if a value is within a specified range.

in_range(float|int $value, float|int $min, float|int $max): bool

License

This package is licensed under the MIT License. See the LICENSE file for more information.