swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
Functions       Platforms  
 

Math, Binary coded decimal (BCD) numbers (OMBCD)

 
 

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.

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.

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 ombcd, you must import it into your program using a statement like this:

  import "ombcd.xmd" unprefixed

(Please see the import topic for more on importing.)

Functions
   constants in BCD
   ombcd-version
 
Platforms
   HP/UX
   IBM AIX
   Linux (Intel)
   MS Windows 98/ME
   MS Windows NT/2000/XP
   Sun Solaris
 
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:46:16 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.