Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
Code Project
  1. Home
  2. The Lounge
  3. binary presentation of IEEE 754

binary presentation of IEEE 754

Scheduled Pinned Locked Moved The Lounge
questionperformancehelp
2 Posts 2 Posters 0 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.
  • B Offline
    B Offline
    berndg
    wrote on last edited by
    #1

    Forgive me for a programming-related question; none of the message boards seems applicable but I hope some CPian can help me here. I understand big and little endian storage for multibyte scalar types, but how about IEEE 754 single (32bit) and double (64 bit) floats? Are these to be seen as streams of bits or bytes and thus stored in the same order, or will the byte order be mirrored between little and big endian systems? I'm thinking of applications of different endian style, sharing IEEE754 floats via binary files, or via shared memory between two CPU. TIA, Bernd

    S 1 Reply Last reply
    0
    • B berndg

      Forgive me for a programming-related question; none of the message boards seems applicable but I hope some CPian can help me here. I understand big and little endian storage for multibyte scalar types, but how about IEEE 754 single (32bit) and double (64 bit) floats? Are these to be seen as streams of bits or bytes and thus stored in the same order, or will the byte order be mirrored between little and big endian systems? I'm thinking of applications of different endian style, sharing IEEE754 floats via binary files, or via shared memory between two CPU. TIA, Bernd

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      In my experience (embedded systems on big-endian PowerPC, Windows on little-endian Pentiums), floating point numbers are treated the same as integer quantities (i.e. PowerPC byte-ordering for floats is the opposite of Pentium). Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups