NBit Math Question


+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    132

    Default NBit Math Question

    Can anyone confirm that Darrel Taylor's NBit math routines are all *un*signed? ie. if I had negative numbers, I'm restricted to PBP's longs for processing?

    Also, is there any way of converting a number exceeding a long type to a string to send over serial or display?

    Thanks,

    Troy

  2. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: NBit Math Question

    You can use multiple Bytes, Words, and even Longs and manually manipulate them (the way ASM would do it). Then just start shuffling out the string, starting with either LOWBYTE or HIGHBYTE. A bit of work, but it is doable.

Similar Threads

  1. HELP WITH SOME Nbit MATH
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 25th March 2016, 00:28
  2. Math question
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th May 2012, 21:40
  3. math question
    By Picstar in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th March 2012, 12:18
  4. Math question
    By vios in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd September 2007, 19:53
  5. Math question...
    By atomski in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th June 2004, 22:03

Members who have read this thread : 10

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