I apologize in advance for being so new at this, and for any terminology errors. Feel free to point them out; I will not be insulted.
I have very recently started learning C, and I am trying to write a program using math.h. I need to round a float variable to a certain number of decimal places. I was under the impression that the round() function would serve my purposes adequately, but it seems to only work for rounding to the nearest whole number.
Does anyone know what I can do?