Guest mr.trash Posted December 2, 2004 Posted December 2, 2004 Hello I have problems with the function "StringFormat". I have a variable, whose value is: [0;30[ So the Value can be for example: 0 4.434 2.84 23.3452 29.31 But i want, that the variable has always 2 digits. The examples should be transformed to: 00 04 03 23 29 I have read the ReadMe, but it haven't help me... I tried: Stringformat("%2.0f",$variable) but it didn't work. Bye, mr.trash
Developers Jos Posted December 2, 2004 Developers Posted December 2, 2004 try: Stringformat("%02i",Round($variable)) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now