title: Rounding floating variables in C to display upto only 2 digits of precision
body: <p>I have a question - it may seem stupid to most, but i'm still a novice coder. 
  How does one round a floating variable to display upto only 2 or 3 digits of precision ?
  thanks in advance</p>