Join the discussion
Ask questions, share your code and help other Python learners. It's free.
Log in to comment, vote and follow discussions.
Continue with Google
or
Already have an account?
New to Space Python?
Check your inbox
We sent an activation link to . Open it in this browser and you'll come straight back here, logged in.
Nothing after a few minutes? Check your spam folder.
Comments 4
Join the discussion CommentAlready have an account? Log in
The
%format spec already multiplies by 100 for you. Pass the raw fraction (0.8734) and it will show 87.3%.Ha, double multiplication. Fixed.
Same trap as the hint says: format the value, don't change it.
{mass:,}was new to me. Very handy for big numbers.