How to detect variable going below zero, without using PBPL ?


Results 1 to 19 of 19

Threaded View

  1. #1
    Join Date
    Feb 2013
    Posts
    868

    Default How to detect variable going below zero, without using PBPL ?

    Hello again

    is there any way to avoid getting 65xxx numbers instead of negative numbers, when X-Y and Y is > X ?
    I know, that PBPL can do it, but I don't want to use 18 series.

    So maybe there is a way, instead of 0-65535, to have range of -32768 +32767 ?
    or any other trick, that if resulting variable is going below zero, it to become equal to zero?
    Last edited by CuriousOne; - 10th May 2022 at 10:02.

Similar Threads

  1. How to detect variable decrease moment?
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th February 2014, 22:02
  2. PBPL and TCP/IP
    By edtp in forum Ethernet
    Replies: 10
    Last Post: - 4th March 2011, 19:35
  3. Help, PBPL and DIV 32.
    By Rogerio in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th March 2010, 10:37
  4. PBP and PBPL
    By keymuu in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 30th January 2009, 17:58
  5. IF..AND/OR..THEN and PBPL
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th January 2008, 16:45

Posting Permissions

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