No, I want to truncate the value. Actually, to be pendantic this is exactly the "l1 prox" of x, so that the resulting l1 norm >= fraction.
Thanks for the tip though.