Converting 32 bit Floating Point, and 48 and 64 bit Integer to string


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: Converting 32 bit Floating Point, and 48 and 64 bit Integer to string

    you have not really explained what format the serial data input takes . can you provide a few examples of input data verses desired result

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Converting 32 bit Floating Point, and 48 and 64 bit Integer to string

    I can try to explain. I get 4 bytes for FP.
    Eg:
    For temperature 23.75, I get 4 bytes $41,$BE,$00,$00
    24.375=$41,$c3,$00,$00
    etc...
    And that values matches with results from this calculator:
    http://www.h-schmidt.net/FloatConverter/IEEE754.html

Similar Threads

  1. Using Floating Point to integer subroutines
    By Luckyborg in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 5th March 2014, 07:52
  2. Microchip 32bit floating point to integer conversion
    By timmers in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st February 2011, 16:49
  3. Replies: 5
    Last Post: - 28th May 2008, 10:20
  4. Replies: 3
    Last Post: - 18th March 2008, 04:29
  5. Floating Point Display Problem (serial string out)
    By Cash Olsen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th December 2007, 02:03

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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