String formatting with fixed width

  • Thread starter Alexander Eisenhuth
  • Start date
A

Alexander Eisenhuth

Hello alltogether,

is it possible to format stings with fixed width of let's say 7 character. T
need a floating point with 3 chars before dot, padded with ' ' and 3 chars after
dot, padded with '0'.

Followingh is my approach'21.100'

But there are missing ' '. How can I get that? (For bigger numbers than 999 they
might be cut: 1021 -> 021)

Alexander
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top