Navigation :
truncate
truncate(r: ranvar, a: number, b: number) 🡒 ranvar, pure function
Returns the conditional ranvar between the inclusive boundaries [a
, b
]. Same as min(max(r, a), b)
.
Example:
show scalar "poisson(3)" a1c3 with poisson(3)
show scalar "truncate(poisson(3), 2, 5)" a4c6 with truncate(poisson(3), 2, 5)