title: c# decimal to string with maximum length
body: <p>I have to send a decimal in string format. The maximum length of the string is 15. How can I do this by rounding to the best fit?</p>
  
  <p>eg:</p>
  
  <blockquote>
    <p>1111111111111119 = "111111111111112"</p>
    
    <p>11111111111111.111 = "11111111111111"</p>
    
    <p>1.11111111111119 = "1.1111111111112"</p>
  </blockquote>
  
  <p>Thanks </p>