Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!vtserf!morpheus!frank From: frank@morpheus.UUCP (Frank McPherson) Newsgroups: comp.sys.amiga.programmer Subject: Re: Switching between integer and floating point Message-ID: Date: 25 Apr 91 15:05:56 GMT References: <1991Apr24.041205.1588@netcom.COM> Organization: Virginia Polytechnic Institute Lines: 21 In article <1991Apr24.041205.1588@netcom.COM> rodent@netcom.COM (Ben Discoe) writes: > > Does anyone have other ideas or comments about these approaches? >---------------- >Ben in San Jose, an Amigoid in a non-Amiga city. -- Seperate the program into modules, using functionality to determine what goes where. So, for example, you'd end up with a bunch of modules which control your user interface, read from disk, etc, along with the math modules. For example, you could have integer.c and float.c. You could then include two seperate makefiles, with the only difference being that one of them would compile integer.c, while the other would compile float.c. There are many possible modifications you could make to this idea, most of which should work pretty well as long as you document the difference well. Make the users aware that they must choose which type of math they'd like to use, and tell them some advantages and disadvantages of each. -- Frank McPherson INTERNET : emcphers@fox.cs.vt.edu -- -- AmigaUUCP : uunet!vtserf!morpheus!frank --