Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Visualization
    4. Formula in Number (basic - number element)

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Formula in Number (basic - number element)

    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kselltrum last edited by kselltrum

      Hello.
      I want to display value of some state (as example 'javascript.0.test.power') and want to display it divide to 1000 with 2 didgits after comma. Can i do this with vis widget, or i need to do this in script outer of vis?
      insest this in Object ID field not work for me:(

      {javascript.0.test.power;/(1000);round(2)}
      
      Ro75 paul53 2 Replies Last reply Reply Quote 0
      • Ro75
        Ro75 @kselltrum last edited by

        @kselltrum

        {n:javascript.0.test.power;n/1000.toFixed(2)}
        

        Ro75.

        1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @kselltrum last edited by paul53

          @kselltrum sagte: divide to 1000 with 2 didgits after comma.

          Widget "basic - Number", Advanced settings:

          Vis_number.JPG

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          785
          Online

          31.6k
          Users

          79.4k
          Topics

          1.3m
          Posts

          3
          3
          211
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo