I am using the following code to show percentage using String.Format but I also want to limit the number of significant figures to 2, the two don't seem to play well together. How can I get the two working together properly?
String.Format("% Length <= 0.5: {0:0%}", m_SelectedReport.m_QLT_1);
So what I ideally want is something like this
double d1 = 1234;
double d2 = 0.1234;
//Output of d1 -> 12
//Output of d2 -> 0.12