Jump to content

On HDA, trying to show values on UI but too many digits....


Recommended Posts

Hi,

I am building HDA, then I put expression to show some values on UI using Label.

For instance, I set this expression at Label1:

    X:`chs("../../CAMERA_VIS/tx")`

    Result on UI:
    X: 51.400135040283203

It's cool, but this is a too many digits. I prefer to make it shorter such as :

    X: 51.4001

Is there any good way to make it shorter instead of too many digits ? 
I also did test to use round way :

    `round(chs("../../CAMERA_VIS/tx")*100)/100`

^ this way is not perfect... Some case worked but still show long digits as 1.7800000000.

Please give any advice for me.

Thank you.

Jun Watanabe

Edited by nabejun
Link to comment
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...