swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
    Related Concepts  
operator   abs    

Return type: Opaque
Returns:       

The absolute value of a specified number.



Syntax
  abs bcd expression


Purpose

Use abs to get the absolute value of a floating point number or BCD number.

To get the absolute value of a BCD number, you must include the ombcd.xin file in your program. To get the absolute value of a floating point number, include the omfloat.xin file.

BCD Example:

The following program will output "$34.98":

  include "ombcd.xin"
  process
      local bcd price
      set price to bcd -34.98
      output "<$,NNZ.ZZ>" % abs price

      Related Concepts
   BCD data type
 
----  

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

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

Copyright © OmniMark Technologies Corporation, 1988-2000.