Conversion of long to decimal in c# <p>I have a value stored in a variable which is of type "long".</p> <pre><code>long fileSizeInBytes = FileUploadControl.FileContent.Length; Decimal fileSizeInMB = Convert.ToDecimal(fileSizeInBytes / (1024 * 1024)); </code></pre> <p>I want to convert the fileSizeInBytes to decimal number rounded up to 2 decimal places (like these: 1.74, 2.45, 3.51) But i'm not able to get the required result. I'm only getting single digit with no decimal places as result. Can some one help me with that ??.</p> <p>Thanks in anticipation</p>