swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
Functions    
 

Binary coded decimal (BCD) support (OMBCD legacy)

 
 

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" %).

This is a complete list of the BCD library external exceptions that may be thrown back to the calling OmniMark program. These are all catchable using the #external-exception label.

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

  include "ombcd.xin"

Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:54:44 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.