Jump to content
Sign in to follow this  
Interroga

Why in real tags not possible control number of digits, equal the control in int tags?

Recommended Posts

I would like know why  in real tags not possible control number of digits, equal the control in int tags? always when put numeric display in screen , the program show warnings , because i need 2 or 3 digits and numeric box require all digits show all characters. Today ,not possible removal the signal in numeric box.
I was already forgetting, in the text boxes the same problem occurs. Example , user names in screen.

Regards,
Mauro 

Share this post


Link to post
Share on other sites

You can define how many digits will show in a numeric box. You should have a property called "Decimal Precision which defines how many numbers will appear after the dot. The default is 3, so the number will look like:

-9999999999.999

The bold part is what you control (just like with Int, but with Int, the entire number is divided by 10, 100, 1000 etc, so 65535 becomes 655.35 or 65.535).

In Int16 the max number of digits is 5, and in Int32 it's 10 if I recall correctly. However, with Real numbers, you can get up to numbers like 10^38, and you can also get to numbers like 10^-38 (0.00000000000......00001)

 

The next version of UniLogic will support Exponential Notation on Web and HMI, so numbers like 12345678901 will become 1.234E10  (when the decimal precision is 3. You can get more digits after the dot if you change the precision).

If that exponential notation good enough for you?

Besides that, you can reduce the number of your Numeric box. You will see the exclamation mark, but it has no hard. It just notifies you that your numeric box might not be large enough.

 

BR,

Saragani

 

 

  • Upvote 1

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×