Converting 32 bit hex to floating point

  • I'm writing a stored procedure to read and interpret values stored in a binary file. I've reached a segment of the file where float values are represented by 4 bytes (as opposed to integers represented by 2 bytes) and I'm totally STUCK. Does anyone know how to convert 4 bytes to a floating point using T-SQL?

    For example, I am reading the following bytes from a binary file: 00 00 FA 43, and I know the end result should be 500. Anyone know how to do this?

    THANKS SO MUCH

  • and just what is the format of the 4 bytes shown ?

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply