Thread
:
Trying to make a percentage progress composit column.
View Single Post
12-26-2019, 02:14 PM
#
11
chaley
Grand Sorcerer
Posts: 12,467
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
change the format in the last line to be "{0:2.0f}%". The problem seems to be that the "d" format chokes if the input is an actual floating point number.
chaley
View Public Profile
Visit chaley's homepage!
Find More Posts by chaley
Track Posts by chaley via RSS