title: How to round a decimal amount, in c sharp, to a nearest fractional value given by users?
body: <p><strong>Requirement</strong></p>
  
  <p>User has option to choose fractional value as a rule. For example 0.5, or 0.01, or 0.33, or 0.1.</p>
  
  <p>Amount is for example 12.46 and rounding rule is 0.01.</p>
  
  <p>I am not sure if i have explained it correctly.</p>
  
  <p>Any answer is highly appreciated. Khankooouuu in advance.</p>