The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I write accounting software and I never use doubles because of the precision and everyone says not to for money. I'm wondering if this is going to get me in trouble because the your Number is a double.
When I'm reading in to an object I create I use: myDecimal = Convert.ToDecimal( sheet.Range[rowcount, 12].Number);
When I'm creating a sheet I use worksheet.Range[rowcount, 2].Number = Convert.ToDouble(myDecimal); worksheet.Range[rowcount, 2].NumberFormat = "$#,##0.00";
Should I be using number here? Since I'm only setting values, will I not get into trouble? If excel does calculations with the doubles will there be a problem?
MMManikandan M Syncfusion Team August 23, 2011 01:58 PM UTC
Hi Dan Parker,
Thank you for your interest in Syncfusion product.
Using Number format is correct. It would not create any problem if double value is stored in number format as you did. And Calculation can be done without any problem.