Oldskuler Posted February 5, 2020 Report Share Posted February 5, 2020 Hello, I'm using multiply formula and storing result into MF. I'm displaying results on display, and my problem is that result have 6 decimals, but I only need 1 or 2... For better understanding, for example, I want to number 6.543210 display as 6.54 or 6.5. By default, display settings when using MF are greyed out, and can't change decimal points (picture attached)... Any suggestions, tips? Thanks, Petar Link to comment Share on other sites More sharing options...
AlexUT Posted February 5, 2020 Report Share Posted February 5, 2020 Hi, MF cannot be formatted. To show MF content in desired format, use Num To ASCII and format output string as you wish. Then show this string on display. B.R. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted February 5, 2020 MVP 2023 Report Share Posted February 5, 2020 Stick with integer operands and multiply by 10 or 100 (prior to your calculations that would produce a decimal) then display with 1 or 2 decimal places. Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted February 5, 2020 MVP 2023 Report Share Posted February 5, 2020 I use this solution for correct display distance MF4 (mm) in 0.1mm on display (ML4). You can modify this for 0.01 MF1 = distance ( mm) in FLOAT 1 1 Link to comment Share on other sites More sharing options...
Oldskuler Posted February 6, 2020 Author Report Share Posted February 6, 2020 Thank you all for help, I have used solution as @kratmel described and it works just as I wanted. Thank you again, cheers. Petar Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now