step - chung-leong/qb GitHub Wiki

step - Step function

float step( float $edge, float $x )

step() returns 0.0 if x is less than edge and 1.0 otherwise.

Parameters:

edge - The edge. It can be a scalar or an array.

x - The number to process. It can be a scalar or an array.

Return Value:

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.

Version

1.0 and above.