swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax     Other Library Functions  
OMX  

float

 
 

Library: Floating point number support (OMFLOAT)
Import: omfloat.xmd


Purpose

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 import file ("omfloat.xmd") defines the interface to that component. To use float OMX components in your program, you must import the omfloat.xmd module in your program using a statement like this:

     import "omfloat.xmd" unprefixed

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:

  
     import "omfloat.xmd" unprefixed
  
     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.

    Related Syntax
   is-nan
   sqrt
   exp
   ln
   log10
   ** (power)
 
  Other Library Functions
   float
   is-nan
   omfloat-version
 
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.