swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
 
  float    

The float OMX component allows you to create and manipulate floating point numbers in an OmniMark program.

The Omnimark Floating Point dynamic link library file ("omfloat.dll" or "omfloat.so") creates the float OMX component. The related include file ("omfloat.xin") defines the interface to that component. To use float OMX components in your program, you must include the following declaration and include statement in your program:

     include "omfloat.xin"

Within your program, you create as many instances of the float OMX component as you require by declaring global and local variables of type "float". For example:

     include "omfloat.xin"

     global float my-float-1
     global float my-float-2

     process
        local float my-float-3
        local float my-float-4

Once you have declared your float OMX variables, you can manipulate the values in them using the floating point arithmetic functions in the OmniMark Floating Point library.

The float OMX component is copyable. This means that when you set the value of one float OMX variable to the value of another float OMX variable, you end up with two variables having independent values that exist in independent external objects.

Since the float OMX variable is copyable, any changes to the value of the original OMX variable do not affect the value of the copy. If an OMX variable is not copyable, changes made to the value of one OMX variable affect the value of its copy, because both the original OMX variable and the copy of that OMX variable are actually pointing at the same external object.

   
----  

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

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

Copyright © OmniMark Technologies Corporation, 1988-2000.