Byte to integer ?


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Byte to integer ?

    Is there any way I can get the integer value from a byte/word or vice versa with PBP ?

    I need to monitor a word and compare it with a preset integer value. I'm using the DS18B20 and
    it's the temperature variable that I'm wanting to decipher.

    Thank you.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Byte to integer ?

    disregard. may be a dumb question -- need to look at something tomorrow.

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Byte to integer ?

    It kinda is. Bytes and words are both integers.
    You can’t get anything but an integer value from it without a floating point library.

Similar Threads

  1. How to round number using integer only
    By Yvesmazzon in forum Code Examples
    Replies: 2
    Last Post: - 6th March 2011, 13:37
  2. Convert an integer to a string
    By GioppY in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st March 2007, 15:50
  3. Help!! Integer Math?
    By scottl in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd July 2006, 14:49
  4. Help!! Integer Math?
    By scottl in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th June 2006, 13:47
  5. converting long integer
    By jra in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th September 2004, 17:02

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