Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Dashboard elements not displaying decimals.

Dashboard elements not displaying decimals.

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 25.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    C
    chris.petree
    wrote on last edited by
    #1

    I understand that the dashboard elements won't display partial numbers. I have some custom attributes that go to the 1/1,000,000 so... 11.111111
    The problem is that it seems if the custom attribute is anything but a whole number, it displays it as 0. What is available in the script maybe or something else to cast the attribute as an integer instead of a float? Or is there something in the dashboard configuration that could make this even simpler?

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Dashboard elements expected to show floating point numbers as well. What elements exactly do not show them? Can you share screenshots of dashboard element configuration and result?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • C
        C
        chris.petree
        wrote on last edited by
        #3

        Hey Victor, I was messing with it yesterday, and that was actually the primary reason it wasn't working. I had the DCI set as a string instead of a float. I also found the reference to all of the math related commands as well. Like format(variable, 1, 2); So if the variable was 34.5731 the result would be 34.57. Works great. Currently, I think I'm all set in this area. Thanks.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups