Skip to content

PhpAlto/alto-math-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math Functions

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages