majikal Posted March 31, 2009 Share Posted March 31, 2009 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. Quote Link to comment Share on other sites More sharing options...
SpencerL Posted March 31, 2009 Share Posted March 31, 2009 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 Quote Link to comment Share on other sites More sharing options...
majikal Posted March 31, 2009 Author Share Posted March 31, 2009 thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.