swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
Functions       Platforms  
  ombcd - binary coded decimal (BCD) support   Available in:
Enterprise

You can use the BCD (Binary Coded Decimal) library to create and manipulate BCD numbers in your programs.

BCD numbers are useful for financial and some scientific calculations.

While the syntax of most BCD library functions is the same as that for the corresponding floating point 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.

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

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

The BCD library can throw the following exceptions:

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

  include "ombcd.xin"

Functions
   BCD_IsVersionCompatible
   BCD_LibraryVersion
   constants in BCD
 
Platforms
   HP/UX
   IBM AIX
   Linux (Intel)
   MS Windows 95/98/ME
   MS Windows NT/2000
   Sun Solaris
 
----  

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

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:52 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.