Hello,
I have a variable, TablePrecision, that specifies the precision of a number. How do i get printf to use that variable in its formatting without me having to hardcode it?
thanksCode:int TablePrecision = 2; double number = .839234; printf("%.2g", number); // put TablePrecision where the 2 is