BougieBirdie@lemmy.blahaj.zonetoProgramming@programming.dev•What is this format specifier?
2·
1 year ago.2f
will format your number rounded to two decimal places. So if you had 1 / 3 it would come out as 0.33 instead of 0.333333
% is the placeholder for the value
.2 tells it ‘two spaces after the decimal’
f tells it that the placeholder is a float
I discovered comic mono a couple months ago and I’ve never looked back. It’s the perfect font