title: Concise way to implement round() in C?
body: <p>The embedded C I'm using doesn't have a round() function it it's math lib, what would be a concise way to implement this in C?  I was thinking of printing it to a string, looking for the decimal place, then finding the first char after the period, then rounding up if >= 5, else down. etc.  Was wondering if there's something more clever.</p>
  
  <p>Thanks,
  Fred</p>