alto/math-functions

Math functions for PHP

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/alto/math-functions

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

This package is auto-updated.

Last update: 2025-10-12 00:53:37 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.