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

      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.power.energy_this_mounth;/(1000);round(2)}
      
      amg_666 1 Reply Last reply Reply Quote 0
      • amg_666
        amg_666 @kselltrum last edited by

        @kselltrum sagte in Formula in Number (basic - number element):

        value of some state (as example 'javascript.0.test.power') and want to display it divide to 1000 with 2

        if you use the "number" widget you can define the digits after comma and you can also define a multiplier (e.g. 0.001 to divde by 1000)

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

        Support us

        ioBroker
        Community Adapters
        Donate

        593
        Online

        31.6k
        Users

        79.4k
        Topics

        1.3m
        Posts

        2
        2
        181
        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