Python Forum
quest for better float formatting
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
quest for better float formatting
#1
my main goal is printing out a sequence of float (or decimal) numbers is to be sure the decimal point is lined up among many lines of output. but i also want to specify how many characters of space to use, the minimum number of digits for the whole part and the minimum number of digits for the fraction part. if i implement something it would have arguments of the value to print, the size an the two minimum digits. even then, the decimal point won't always line up.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  the quest for a mutable string (buffer) Skaperen 2 260 Apr-04-2024, 12:42 PM
Last Post: Skaperen
  the quest for a mutable string (more) Skaperen 0 169 Apr-04-2024, 04:01 AM
Last Post: Skaperen
  precision in formatting float Skaperen 2 1,411 May-01-2022, 10:23 PM
Last Post: Skaperen
  functio to do fixed formatting of int/float Skaperen 0 1,905 Dec-26-2018, 09:55 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020