+ Reply to Thread
Results 1 to 3 of 3

little endian to big endian double

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    Kingston, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    1

    little endian to big endian double

    I have an apparatus driven by Labview that saves double data as binary for speed reasons. The problem is that for historical reasons Labview uses little endian IEEE-64 bit doubles and excel (like most windows programs) wants big endian IEEE-64 bit doubles. I need to be able to reverse the byte order and convert to double. I can read in the data as string *8 and reverse the byte order, but I can't figure out how to get the result converted to double. I have some vague recollection that in earlier versions of basic there was a fcn (MCVRT?)to do this but can't find anything now.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: little endian to big endian double

    Tricky. Excel does not allow you to 'access' the true bytes. Here is something I found, but I'm not sure it will work in Excel VBA:
    http://stackoverflow.com/questions/1...ay-into-double
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: little endian to big endian double

    Wow! It worked! I was dubious that code would work in Excel VBA. Thanks for the rep bump.

    Please take the time to mark this as SOLVED (and include your code if you made any modifications - I'm curious).

    Pauley

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Before double click event with if statements (Double clicking blank cell stops bdc firing)
    By camdenpars in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2014, 09:03 AM
  2. Changing cell properties with double click, then revert with another double click
    By mweber2525 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-01-2014, 01:40 PM
  3. Copy double-clicked cell to next empty row in different sheet with each double-click
    By erhathaway in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2013, 12:06 AM
  4. Double stack and double line graph
    By Karen311261 in forum Excel General
    Replies: 5
    Last Post: 10-06-2010, 11:58 AM
  5. Double Locks ? Double Trouble
    By JXBlack in forum Excel General
    Replies: 1
    Last Post: 10-04-2009, 03:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1