So, here's the problem. I've got a happy long double named Fred. He looks like 9.56756785685685682595. I need a function so I can round him down that takes TWO values, not one. The first value is Fred, the second should be how many decimals should remain. For example, round(Fred,0) == 10. round(Fred,3) == 9.568.
If there is no function to do this, how can I do it with existing functions? Note: I prefer to use standard libraries.