Jump to content

whole number


majikal

Recommended Posts

Hello!

Does anybody know how to display zeros in float number, when the number is whole.

I am making some measure tool, now i put:

`round(ch("../precna/tx")*10)/10` in the text field in font sop.

When result of previous function is 2, i want to display 2.0 .

any suggestion will be appreciated

p.s. one option is to check if numer is whole (by modulus) and then add 0 to a string. But I dont know how to write if statement to return string.

Link to comment
Share on other sites

Hello!

Does anybody know how to display zeros in float number, when the number is whole.

I am making some measure tool, now i put:

`round(ch("../precna/tx")*10)/10` in the text field in font sop.

When result of previous function is 2, i want to display 2.0 .

any suggestion will be appreciated

p.s. one option is to check if numer is whole (by modulus) and then add 0 to a string. But I dont know how to write if statement to return string.

check out ifs() to return a string value

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...