Agustin Posted June 23, 2018 Report Posted June 23, 2018 Hi, I have a problem. It's the firt time that I work with Unilogic and I need help. I have to divide two numbers, that gives me a comma value as a result. I do not know how to handle values with commas in Unilogic if I have to set REAL values. On top of that I want to put the result value in a timer. Is it possible with this soft? Thank you! Attachment screenshot
MVP 2023 Flex727 Posted June 23, 2018 MVP 2023 Report Posted June 23, 2018 As a general rule, it's better to stay with integers. The way you do this is to use "implied" decimals. If you need precision to 1 decimal place, multiply by 10 before the division. If you need 2 decimal places, multiply by 100. You can display the integer with implied decimals or do the math for the correct timer preset before storing. Timers will only use integers, but are in 10 ms increments. 1
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