diff options
author | Michael Hunteman <michael@huntm.net> | 2024-01-13 11:57:02 -0600 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-01-13 11:57:02 -0600 |
commit | 4bc2b752c41dc9bdcbd037fde9a72a3a1f85792d (patch) | |
tree | d63586a1513a382b539ba0cfc0b780cdac713524 /one | |
parent | a7882bf037313667af9f74c684212fb1f649dc93 (diff) |
temp: update comment for printf digit width
Diffstat (limited to 'one')
-rw-r--r-- | one/temp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ temp() printf("Fahrenheit-Celsius table\n"); for (fahr = UPPER; fahr >= LOWER; fahr -= STEP) { cel = (5.0 / 9.0) * (fahr - 32.0); - /* 3 and 6 characters wide with 1 digit after the dot */ + /* 3 and 6 digits wide with 0 and 1 digits after the dot */ printf("%3.0f %6.1f\n", fahr, cel); } |