You got exactly what you asked for. The expression "%-15.2f" means that
it will reserve 15 spaces in total for your number to be displayed but
not the max lenght. If your number have more than 15 digits, all the
digits will be displayed anyway. If you want the units mm to be next to
your number, write "%0.2f". If you want the max lenght of your number
to be 15 digits, coerce your number before wiring it to the "Format
into string" function.
In article <3A657D23.1DC16F26@web.de>,
Henrik Skupin wrote:
> Hi,
>
> i have a new problem called above. I want's to format a number with a
> max. length of 15 and the alignment is left. What i get is following:
>
> Format: "Number: %-15,2{mm}f"
> Result: "Number: 3,14 mm"
>
> Thats's n
ot brilliant. I want's to have the unit directly after the
> number and keep the length of 15. Is it possible to get the result in
> one step? Otherwise i have to use two times the formatting tool...
>
> Regards
> Henrik
>
Sent via Deja.com
http://www.deja.com/