I have values stored as 0.05 and 0.10 in the database. I am creating a list using c# code to get these values in the list using :
foreach (var objST in obj.LstTerms)
{
SubcriptionTermsModel objSubcriptionTerms = new SubcriptionTermsModel();
objSubcriptionTerms.DiscountRate = objST.DiscountRate;
}
where DiscountRate is of type double. But when creating a list the value 0.10 is truncated as 0.1 which I am unable to compare on my view. Kindly help me with the solution for this.