Evaluates the ramp function (single-precision).
x >= 0
x
input value
function value
var v = rampf( 3.14 ); // returns 3.14
var v = rampf( -3.14 ); // returns 0.0
var v = rampf( NaN ); // returns NaN
Evaluates the ramp function (single-precision).
Notes
x >= 0
, the function returnsx
; otherwise, the function returns zero.