Using Floating Point to integer subroutines


Results 1 to 10 of 10

Threaded View

  1. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Using Flaoting Point to integer subroutines

    Along with what Henrik said ...

    Quote Originally Posted by Luckyborg
    I have used multiple online converters to verify that 50.0 = 0x42480000.
    Most online convertors will use the IEEE floating point format. The format that is used in most PC languages.
    But Microchip uses a different format. And 50 in Microchip's format is 0x84480000.

    So if you are receiving IEEE formatted floats, you will not be able to convert them with the Microchip Floating Point routines without first converting to Microchip format.
    Last edited by Darrel Taylor; - 4th March 2014 at 17:39.
    DT

Similar Threads

  1. Microchip 32bit floating point to integer conversion
    By timmers in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st February 2011, 16:49
  2. Getting out of floating point
    By jcb344 in forum General
    Replies: 3
    Last Post: - 5th August 2008, 21:18
  3. Replies: 5
    Last Post: - 28th May 2008, 10:20
  4. Floating Point
    By jrudd in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th May 2005, 14:19
  5. help floating Point!
    By Eric in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th December 2003, 21:18

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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