How do truncate a decimal in PHP? The right side of a decimal : <p>I see that there are methods that truncate the left side of a decimal. For example, 3.5 would be 3 if using functions such as floor() in PHP. Is there a function that truncates the right side of the decimal? For example, 3.5 would just be .5.</p>
