home *** CD-ROM | disk | FTP | other *** search
- The enclosed files are an example of a floating point application
- written in Bourne shell scipt, with the aid of a short program,
- FPDIVIDE.
-
- FPDIVIDE will divide, multiply, add, and subtract floating point
- numbers, depending on its name.
-
- The sample application enclosed is a Fuel Economy Calculator,
- in versions for the US, UK, and the rest of the (decimal) world.
-
- While fuel economy is not such a hot topic in the US, I don't know
- of any other topic more frequently discussed when drivers of automobiles
- talk about their cars in Europe.
-
- This program will let you enter the distance driven and fuel consumed
- every time you fill your tank, and will then tell you how many miles
- to the gallon you have driven, or how many liters of fuel your have
- consumed per 100 km driven.
-
- It will optionally print out a short statement on the standard line printer.
-
- With minimal modifications, this program should also run under the
- MKS Toolkit implementation of the Korn Shell.
-
- FILES:
-
- README this file
- fpdivide.c the source for the floating point commands
- fpdivide.1 man page for the floating point commands
- mpg.1 man page for the MPG programs
- eurmpg European/Decimal version of MPG
- ukmpg UK/Imperial Gallons version of MPG
- usmpg US version of MPG
- mpgdata initial $HOME/.mpgdata file, all zeros
-
- I hope sombody finds this useful. I welcome your comments!
-
- Wolf N. Paul
- ihnp4!killer!wnp
- ihnp4!killer!dcs!wnp
- ihnp4!killer!doulos!wnp
-