float

data type

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


Purpose

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

To use the float data type in your program, you must import OMFLOAT in your program using an import declaration such as:

  import "omfloat.xmd" unprefixed

Within your program, you create as many instances of the float data type as you require by declaring global, local, or field shelves of type float. For example:

  import "omfloat.xmd" unprefixed
  
  global float float-1
  global float float-2
  
  process
     local float float-3
     local float float-4

Once you have declared your float shelves, you can manipulate the values in them using the functions in the OMFLOAT library.

The float data type can be copied. This means that when you set the value of one float shelf item to the value of another, you end up with two shelf items having independent values that exist independently. Any change to the value of the original does not affect the value of the copy.

Related Topics
Other Library Functions