Sorry, yet ANOTHER mod question


Results 1 to 9 of 9

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: Sorry, yet ANOTHER mod question

    14 mod 10 = 4 mod gives you the remainder after the division ie ten goes into 14 once with 4 leftover , its not what you want
    frac = volts*10 mod 100 is what you want ie 1469 mod 100 = 69 but
    the following is easier
    forget the frac
    volts_in = (volts_in * 10) / 498

    try lcdout $fe, $c0, "voltage is: ", volts_in/100, ".", dec2 volts_in
    Last edited by richard; - 30th January 2014 at 02:39.

Similar Threads

  1. Help with Pic Delay code mod please
    By g7jiq in forum General
    Replies: 1
    Last Post: - 26th March 2009, 00:06
  2. ERROR: Macro MOD?TCB not found in macro file.
    By JohnP in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th February 2009, 19:10
  3. 18F4620 HPWM Half Bridge Mod problem
    By showtime in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2007, 12:55

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