The floating point library is a collection of basic arithmetic, exponential, and miscellaneous math functions based on the C math library. You can use the functions in this library to perform double-precision floating point arithmetic.

While the syntax of most floating point library functions is the same as that for the corresponding BCD library functions, these two libraries are mutually exclusive. You can only include one of them -- omfloat.xin or ombcd.xin -- in a single OmniMark program.

The floating point external function library consists of the following files:

- omfloat.so (for UNIX), or omfloat.dll (for Windows), the floating point library
- omfloat.xin, which defines the float data type and all the functions and constants in the library.

There are several categories of external functions in the floating point library, all of which use the same operators as in the BCD library and in core OmniMark:

- basic arithmetic functions.
- comparison operators.
- functions for rounding numbers.
- exponential functions.

You can do output of all floating point numbers by using the OmniMark template formatting language and by using the format operator ("d" %).

Notes:

- The trigonometry functions that were in this library in previous versions of OmniMark are now in their own library,
`omtrig - trigonometry`

. - The Bessel functions that were in this library in previous versions of OmniMark are now in their own library,
`ombessel - Bessel functions`

.

To use these functions, you must include the following code near the top of your program:

; floating point function and constant declarations include "omfloat.xin"