Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
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 (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Darstellung immer mit Nachkommastelle?

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    805

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.6k

Darstellung immer mit Nachkommastelle?

Scheduled Pinned Locked Moved Blockly
6 Posts 3 Posters 222 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dieter_P
    wrote on last edited by Dieter_P
    #1

    Hi

    für eine Visualierung möchte ich Datenpunkte (Number) immer mit einer Nachkommastelle als Text darstellen.

    Für DPs mit mehr oder gleich einer Nachkommastelle funktioniert:

    5b63a172-c5da-4855-bbc7-a702adff288e-grafik.png

    Aber habe ich Werte ohne Nachkommastelle wird kein ,0 ergänzt.

    Kann man das nur über Wenn/Denn Logiken lösen oder geht es besser mit vorhanden Blocklys?

    Danke vorab!

    paul53P 1 Reply Last reply
    0
    • D Dieter_P

      Hi

      für eine Visualierung möchte ich Datenpunkte (Number) immer mit einer Nachkommastelle als Text darstellen.

      Für DPs mit mehr oder gleich einer Nachkommastelle funktioniert:

      5b63a172-c5da-4855-bbc7-a702adff288e-grafik.png

      Aber habe ich Werte ohne Nachkommastelle wird kein ,0 ergänzt.

      Kann man das nur über Wenn/Denn Logiken lösen oder geht es besser mit vorhanden Blocklys?

      Danke vorab!

      paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by
      #2

      @dieter_p sagte: geht es besser mit vorhanden Blocklys?

      Mit einer JS-Funktion mit Ergebnis.

      return val.toFixed(1);
      

      Blockly_temp.JPG

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Reply Last reply
      1
      • D Offline
        D Offline
        Dieter_P
        wrote on last edited by
        #3

        @paul53
        Danke, läuft prima.

        paul53P 1 Reply Last reply
        0
        • D Dieter_P

          @paul53
          Danke, läuft prima.

          paul53P Offline
          paul53P Offline
          paul53
          wrote on last edited by
          #4

          @dieter_p sagte: läuft prima.

          Die Funktion liefert einen String.

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          D 1 Reply Last reply
          0
          • paul53P paul53

            @dieter_p sagte: läuft prima.

            Die Funktion liefert einen String.

            D Offline
            D Offline
            Dieter_P
            wrote on last edited by
            #5

            @paul53
            Danke. Gerne ein paar Ressourcen sparen, also so:
            fde4ed0e-3629-43bf-9871-170c531ae458-grafik.png

            W 1 Reply Last reply
            0
            • D Dieter_P

              @paul53
              Danke. Gerne ein paar Ressourcen sparen, also so:
              fde4ed0e-3629-43bf-9871-170c531ae458-grafik.png

              W Offline
              W Offline
              warp735
              wrote on last edited by
              #6

              @dieter_p
              Ohne Nachkommastelle nehme ich immer diesen Block. Hat bisher immer wie gewünscht funktioniert :-)

              0475c05a-94e5-46cd-ae7c-0577fef63e05-grafik.png

              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


              Support us

              ioBroker
              Community Adapters
              Donate

              554

              Online

              32.8k

              Users

              82.7k

              Topics

              1.3m

              Posts
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
              ioBroker Community 2014-2025
              logo
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Home
              • Recent
              • Tags
              • Unread 0
              • Categories
              • Unreplied
              • Popular
              • GitHub
              • Docu
              • Hilfe