KydeX Posted November 16, 2015 Report Share Posted November 16, 2015 How can I set the number of decimals shown in a numeric box in HMI if it is a real number? The format button is not active when the number is a REAL number. Quote Link to comment Share on other sites More sharing options...
NoamM Posted December 27, 2016 Report Share Posted December 27, 2016 Hello, The real numbers are set up to show 6 significant figures after the decimal. This is due to the format we use for real numbers (following IEEE 754 standard). Unfortunately, there is no way to directly format the decimal placing after a real number in the software. You would have to convert the real into two 16-bit integers (the whole part, and the fractional part) then manually format the number on screen by putting these two integers together on screen. UPDATE: From UniLogic 1.18 and above there is a property name 'Decimal precision' to numeric box in case it linked to a REAL tag as you can see in the attached image. 1 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.