Core Function
View Source on Trac ↗ wp_tinycolor_bound01()
wp_tinycolor_bound01( mixed $n, mixed $max ) Takes input from [0, n] and returns it as [0, 1].
Parameters 2 required
| Name / Type | Description |
|---|---|
| $n mixed | Number of unknown type. Required |
| $max int | Upper value of the range to bound to. Required |
Return Value
(float)
Value in the range [0, 1].
Function Information
Since Version
5.8.0
Source File
wp-includes/deprecated.php
Advertisement