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 Quote 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted February 5, 2020 MVP 2022 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 kratmel Posted February 5, 2020 MVP 2022 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 Quote 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 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.