Gordon Posted March 20, 2017 Report Share Posted March 20, 2017 Hi, I`m using Unitronics Vision OPLC IDE Version 9.8.31 Build 0. I have done some math calculation in float format and want to present i on the HMI panel (SM43-J-R20). I don`t want to have decimal in the HMI display. I have not found a function for convert my float value to integer.... ? And I have not figure out how I can control the number of decimal in the HMI for a float value? I assume these is something many others also have struggled with ? by I haven`t find any topics in the forum who help me out... I have tried the String Num to ASCII function, but I haven`t been able to get it to work... the value out of the function is just freezed. I have grateful for your time / inputs, project should be sent ASAP from us to customer... Thank you. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted March 21, 2017 MVP 2022 Report Share Posted March 21, 2017 On the ladder programming area look at Math->Float->Convert->INV (A+B/n). This will convert your float into two integers, one above and one below the decimal. Joe T. 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.