Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Decimal to decimal conversion

$
0
0

I have a decimal number d = 80.12345. and class property decimal FixedPrice{get;set;}

When I assign FixedPrice = d;, the value of Fixed price  = 80.1235.

However, i want to store it as 80.12345.

Can it be explained why a decimal number when assigned to another decimal is loosing its scale?


Thanks, Ankita


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>