some help with math


Closed Thread
Results 1 to 40 of 65

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: some help with math

    But wait there’s more!
    If you call within the next 20 minutes I’ll also throw in this rotating bit
    (but also found I broke it and got to steal some memory back)

    Code:
    thingyousubtract var byte ‘ new variable
    thingyousubtract = 0
    
       if val < 6 AND Menu_Select = 211 then 
       thingyousubtract = 0 : gosub memorysaverotate
       endif 
       if val =>6  and val <= 11 and Menu_Select = 2112 then 
       thingyousubtract = 6 : gosub memorysaverotate 
       endif
       if val =>12 and Menu_Select = 2113 then
       thingyousubtract = 12 : gosub memorysaverotate 
       endif
    
    memorysaverotate:
    val = 1<<(val-thingyousubtract)
    goto Show_current_sel_2
    Last edited by Art; - 11th September 2015 at 21:29.

Similar Threads

  1. Help with A/D math!
    By dbodenheimer in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 19th March 2011, 00:51
  2. Math help please...
    By Ioannis in forum General
    Replies: 2
    Last Post: - 20th June 2008, 10:18
  3. PBPL Math...new math takes more cycles...Always?
    By skimask in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2008, 10:22
  4. Math help please!!!
    By jbirnsch in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th August 2007, 14:45
  5. math help
    By houa in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th January 2006, 16:58

Members who have read this thread : 0

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