|
|||||
|
|||
Functions | Platforms | ||
Floating point number support (OMFLOAT) |
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.
The syntax of most BCD functions is the same as that for the corresponding floating point functions, and you can safely import both of them - omfloat.xmd and ombcd.xmd - in a single OmniMark program.
The floating point external function library consists of the following files:
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:
You can do output of all floating point numbers by using the OmniMark template formatting language and by using the format operator ("d" %).
Notes:
omtrig - trigonometry
.
ombessel - Bessel functions
.
To use omfloat, you must import it into your program using a statement like this:
import "omfloat.xmd" unprefixed
(Please see the import
topic
for more on importing.)
Functions ** (power) abs ceiling exp float floor is-nan ln log10 omfloat-version round sqrt truncate |
Platforms HP/UX HP-UX Itanium 2 IBM AIX 5.3 Linux (Intel) Linux Red Hat Enterprise 5 MS Windows 98/ME MS Windows NT/2000/XP MS Windows Vista Sun Solaris 8 |
Copyright © Stilo International plc, 1988-2008.