FPDIVIDE

Section: Misc. Reference Manual Pages (1L)
Updated: Local
Index Return to Main Contents
 

NAME

fpdivide, fpmultiply, fpadd, fpsubtract - floating point math programs for shell scripts  

SYNOPSIS

fpdivide num1 num2 # performs the division num1 / num2

fpmultiply num1 num2 # performs the multiplication num1 * num2

fpadd num1 num2 # performs the addition num1 + num2

fpsubtract num1 num2 # performs the subtraction num1 - num2

 

DESCRIPTION

These commands, which are really links to the same program, perform the floating point arithmetical operations as listed above, and print their result (with a precision of two decimal digits) on the standard output.

They are designed to add simple floating point arithmetic to Bourne and Korn shell scripts.

 

INSTALLATION

Compile the source file, fpdivide.c, copy the resulting executable into your local bin directory, and make additional links fpmultiply, fpadd, and fpsubtract to the same binary.

 

AUTHOR

Wolf N. Paul, ihnp4!killer!dcs!wnp
Released into the Public Domain, Jan 18, 1988


 

Index

NAME
SYNOPSIS
DESCRIPTION
INSTALLATION
AUTHOR

This document was created by man2html, using the manual pages.
Time: 07:02:51 GMT, December 12, 2024