KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to figure out how to use sprintf to print at least two decimal places and no leading zeros. For instance input: 23 23.0 23.5 23.55 23.555 23.0000 output: 23.00 23.00 23.50 23.55 23.555 23.00 any formatting help would be appreciated
Tags (comma-separated)
Save Edits
Cancel