Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DEC in HEX umwandeln (mit Nachkommastellen)

Empfohlene Antworten

Hallo zusammen,

(@Mod: leider habe ich keine passendere Kathegorie gefunden, also bitte verschieben, wenn unpassend)

Ich habe Probleme beim Umwandeln einer DEC Zahl in eine HEX Zahl:

4711,76 (DEC) = 1*4096 + 2*256 + 6*16 +7 + 76/100

Ohne Nachkommastellen wäre das Ergebnis 1267, aber wie gehe ich mit den Nachkommastellen um??

Vielen Dank für euere Hilfe!

In C werden Werte mit Nachkommastellen in float bzw double Typen abgebildet. Dabei ist ein Teil der bits in der 32 bzw 64 bittigen Darstellung (single-, bzw double-precision) fuer das Exponentenvorzeichen (signed) und den Exponent vorgesehen. Der übliche Standard dafuer ist IEEE-754.

Edith moechte noch diese Seite posten: IEEE 754 - Wikipedia

Unten ist ein Tip-top-Beispiel fuer die Wandlung einer dezimalen Zahl mit Dezimalstellen in eine Gleitkommadarstellung nach IEEE 754.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.