alto/math-functions
Composer 安装命令:
composer require alto/math-functions
包简介
Math functions for PHP
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-13