The OMFLOAT 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.
The syntax of most of the provided functions is the same as that for the corresponding BCD
functions, and you can safely import both of them—
ombcd.xmd—in a single
There are several categories of external functions in the OMFLOAT library, all of which use the same operators as in the OMBCD library and in core OmniMark:
You can do output of all floating point numbers by using the OmniMark template formatting language or
by using the format operator (
To use OMFLOAT, you must import it into your program using an import declaration such as:
import "omfloat.xmd" unprefixed
The trigonometry functions that were in this library in previous versions of OmniMark are now in their own library.
The Bessel functions that were in this library in previous versions of OmniMark are now in their own library.