floating point command for pic basic pro


Closed Thread
Results 1 to 2 of 2
  1. #1
    trouble's Avatar
    trouble Guest

    Default floating point command for pic basic pro

    hi, i'm doing the project for measuring distance for ultrasonic sensor,i got all the formulas for the distance but pic basic pro can't read the floating point..can anybody help me to solve the probs...

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi, Trouble

    Floating point meters are integer millimeters ...

    just format your output like this :

    millimeters/1000 "." millimeters // 1000 " meters "...

    it will show XXX.YYY meters ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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