Sign in to follow this  
Followers 0
Guest mr.trash

stringformat problems

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0