Jump to content

stringformat problems


Guest mr.trash
 Share

Recommended Posts

Guest mr.trash

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...