Thread: Fixed Point Conversion

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    1

    Fixed Point Conversion

    Hello all,

    I have a C program that uses floating point arithmetic. Now, I need to convert that into 16-bit fixed point code. Does anyone know how to do it? I tried to google for hints about the solution. But, all the suggestions that I found involved assembly language programming, which I dont know. So, can I do it in C alone? If so, what are the steps to convert the code?

    Thanks in advance for any suggestions.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    I thought I remembered an article or two that discussed this.

    (Those may not be what I thought I was remembering, it was just a quick Google.)
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help realy needed
    By ZohebN in forum C++ Programming
    Replies: 2
    Last Post: 04-08-2008, 09:37 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. POINT conversion
    By dayknight in forum Windows Programming
    Replies: 4
    Last Post: 07-28-2006, 03:22 PM
  4. fixed point / floating point
    By confuted in forum Game Programming
    Replies: 4
    Last Post: 08-13-2002, 01:25 PM
  5. Floating point faster than fixed-point
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-08-2001, 11:34 PM