S
stig
Hello,
i need some help to format a value with sprintf.
lets say i have the value: 1234567.8
i would with, help of sprintf, like it too have a space every third digit,
change the dot to a comma and round the decimals to 2 digits.
i have come up with sprintf("%.2f", 1234567.8) which gives me: 1234567.80
after that i have had no luck to make it look like: 1 234 567,80
how should i write the sprintf format to acheive the above format?
thanks
stig
i need some help to format a value with sprintf.
lets say i have the value: 1234567.8
i would with, help of sprintf, like it too have a space every third digit,
change the dot to a comma and round the decimals to 2 digits.
i have come up with sprintf("%.2f", 1234567.8) which gives me: 1234567.80
after that i have had no luck to make it look like: 1 234 567,80
how should i write the sprintf format to acheive the above format?
thanks
stig