Float

Floats are signed, numeric, floating-point numbers whose value has 15-16 significant digits. Floats are routinely used for calculations. Note that floats are inherently imprecise: their accuracy varies according to the number of significant digits being requested.

Defining Float values

  • Preprocessor:
    • In the Step properties pane, under Properties, add or select a field.
    • Specify the Type as Float and set a default value as a number with decimal points, followed by a semicolon; for example 546513.8798463;.
  • Extraction:
    • In the Data Model, select a field.
    • On the Step properties pane, under Field Definition set the Type to Float.
    The field value will be extracted and treated as a Float.
  • JavaScript Expression: Set the desired value to any Float value.
    Example: record.fields["PreciseTaxSubtotal"] = 27.13465;

Building Float values

Float values can be the result of direct attribution or mathematical operations just like Integer values (see Integer).

 
  • Last Topic Update: 04:30 AM Jun-12-2017
  • Last Published: 2019-05-22 : 2:51 PM