Thread: a less sevear SOS

  1. #1
    Registered User
    Join Date
    Nov 2001

    Question a less sevear SOS

    I have a small algorythm problem, it should be a common algorythm. Fixed point multiplication, division and subtraction
    i just cant seem to get them working, an example of this would be 12.000233 - 32.000212
    the fractional part will always have 6 places to it
    and the way it must be handled in these overload functions is as follows. A fixedpoint object is declaired with a integral member and a fractional member, both are ints, we cant use doubles or floats as the part to the left of the decimel (ugh).
    if anyone has an algorythm for this handy please send it, if you are going to write it from scratch dont worry about it, too much work
    i can attach what i have so far if someone wants to see it
    btb project is due tomorrow at midnight, thats about 10 hours from now

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    So what's the question - apart from leaving it far too late for anyone to do anything practical in terms of helping....

    I mean
    has lots of info, and no doubt code samples

  3. #3
    Registered User
    Join Date
    Nov 2001
    its hard to say, just looking for what help i can get, and considering how much i had to do for this project and how much free time i had i think i did pretty good

  4. #4
    Registered User
    Join Date
    Nov 2001
    salem, you are awsome, that link had a link to a site that had the most obvious algorythm to do this stuff, never would have thought of it

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SOS, HomeWork in Linked Lists !
    By 4xMpL in forum C Programming
    Replies: 40
    Last Post: 01-01-2009, 02:22 PM
  2. SOS - Can a monolithic kernel be used in a micro-kernel style OS?
    By sean in forum A Brief History of
    Replies: 7
    Last Post: 11-20-2008, 09:30 AM
  3. i'm having trouble to program this!! SOS reply asap
    By Hanz in forum C# Programming
    Replies: 8
    Last Post: 09-07-2005, 06:55 AM
  4. Sos!!!!!
    By sonu_160 in forum C++ Programming
    Replies: 4
    Last Post: 06-03-2005, 08:01 AM
  5. Replies: 5
    Last Post: 12-17-2001, 11:59 AM