-
Notifications
You must be signed in to change notification settings - Fork 14
step
Chung Leong edited this page Jan 10, 2022
·
3 revisions
step - Step function
float step( float $edge, float $x )
step() returns 0.0 if x is less than edge and 1.0 otherwise.
edge - The edge. It can be a scalar or an array.
x - The number to process. It can be a scalar or an array.
0.0 or 1.0 depending on whether x falls before or after the edge. If edge or x is an array, the return value will also be an array, the size of which matches the larger of edge and x.
1.0 and above.