I'm familiar with the convention of using %.2f to set two decimal places for a float but is it in any way possible to change the number to a variable so that the user can state the number of decimal places displayed?
I'm familiar with the convention of using %.2f to set two decimal places for a float but is it in any way possible to change the number to a variable so that the user can state the number of decimal places displayed?