pl: USB und Floating Point Numbers

Beitrag lesen

problematische Seite

hi

Transportiert werden Bytes. Genauso wie in Dateien Bytes gespeichert werden. Nun ist es aber so, daß man auf dem Bus wissen muss wieviele Bytes da zu lesen sind. Genau dafür gibt es Algorithmen für Fließkommazahlen. Also egal, ob der Sensor 128.75°C oder -5.1°C ermittelt, das sind immer genau 4 Bytes, egal ob mit oder ohne Vorzeichen.

Wenn du die üblichen Floating-Point-Darstellungen verwendest, hast du zwar immer genau vier Bytes, aber bestimmte Floating-Point-Werte nie genau.

Die Genauigkeit ist eine Frage des Algorithmus und damit natürlich auch die Frage wieviele Bytes sich daraus ergeben und bei der Wiederherstellung zu lesen sind. MfG

0 57

Frage zu Win32

pl
  • sonstiges
  1. 0
    Rolf B
  2. 0
    Tabellenkalk
  3. 0
    ursus contionabundo
    1. 0
      Rolf B
      1. 0
        ursus contionabundo
        1. 0
          Rolf B
          1. 0
            ursus contionabundo
        2. 0
          pl
          1. 0
            Rolf B
            1. 0
              pl
            2. 0
              pl
              1. 0
                Rolf B
                1. 0
                  Matthias Apsel
                  1. 0
                    Rolf B
                    1. 0
                      Matthias Apsel
                2. 0
                  pl
                  1. 0
                    Rolf B
                    1. 0
                      pl
                      1. 0
                        Rolf B
                        1. 0
                          pl
                        2. 0
                          Robert B.
                          • programmiertechnik
                          1. 0
                            pl
                            1. 0
                              Rolf B
                              1. 0
                                pl
                                1. 0
                                  ursus contionabundo
                                  1. 0
                                    pl
                                  2. 0
                                    pl
                                    1. 0
                                      Rolf B
                                      1. 0
                                        pl
                                        1. 0
                                          ursus contionabundo
                                          1. 0
                                            pl
                                            1. 0

                                              "Net Time Protocol" (a.k.a. "NTP") und "Port 37" passen nicht zusammen!

                                              ursus contionabundo
                                              • webserver
                                              1. 0
                                                pl
                                              2. 0
                                                pl
                                              3. 0
                                                pl
                                                1. 0
                                                  ursus contionabundo
                                                  1. 0
                                                    pl
                              2. 0
                                Robert B.
                                1. 0
                                  Rolf B
                                  1. 0
                                    Robert B.
                                    1. 0
                                      pl
                                      1. 0
                                        Robert B.
                                        1. 0
                                          pl
                                      2. 0
                                        Rolf B
                              3. 0

                                USB und Floating Point Numbers

                                pl
                                1. 0
                                  ursus contionabundo
                                  1. 0
                                    pl
                                    1. 0
                                      klawischnigg
                                      1. 0
                                        pl
                                        1. 0
                                          klawischnigg
                                          1. 0
                                            pl
                                            1. 0
                                              Robert B.
                                              1. 0
                                                Rolf B
                                                1. 0
                                                  pl
                                              2. 0
                                                pl
                    2. 0
                      Matthias Apsel