swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
Functions       Platforms  
  omfloat - floating point number support    

The floating point library is a collection of basic arithmetic, exponential, and miscellaneous math functions based on the C math library. It serves as a "wrapper" around a particular math library. You can use the functions in this library to write OmniMark applications that can 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:

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:

  1. The trigonometry functions that were in this library in previous versions of OmniMark are now in their own library, the Trigonometry library omtrig.xin.
  2. The Bessel functions that were in this library in previous versions of OmniMark are now in their own library, the Bessel function library ombessel.xin.

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"

Functions
   constants in floating point
   FP_IsVersionCompatible
   FP_LibraryVersion
   is-nan
 
Platforms
   HP/UX
   IBM AIX
   Linux (Intel)
   MS Windows 95/98
   MS Windows NT
   SGI IRIX
   Sun Solaris
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:08:25 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.