Jump to content

Recommended Posts

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

visilogic.jpg

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I use this solution for correct display distance MF4  (mm)  in 0.1mm on display (ML4).  You can modify this for 0.01

MF_TRANSF.jpg.c71cfcbc563bd6a1c946eebc2630dfaf.jpg

ML4.jpg.ccd6b2a3c888b783bc025475bad513ce.jpg

MF1 = distance ( mm)    in FLOAT

 

  • Upvote 1

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...