Jump to content

Problem with Timer in Unilogic


Agustin

Recommended Posts

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

Link to comment
Share on other sites

  • MVP 2023

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
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...