Jump to content

Recommended Posts

Posted

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

2018-06-23.png

  • MVP 2023
Posted

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.

  • Like 1

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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.