Skip to content
ezeioDocs
  1. Reference
  2. Script reference
  3. Fields and registers

AdjustField

Adjust the value of a field.

Description#

AdjustField( fieldno, Float:value )

Adds the given value to the field value.

This command performs the addition with double (64-bit) math. It may be useful for accumulating values that can grow very large, in which case this command can be used to maintain precision.

Parameters#

fieldno Which field to adjust
value Value to add

Return value#

The float value of the field after being adjusted.

Example usage#

 
   AdjustField(4, 0.1);
 
   // adds 0.1 to the value of field 4
 

NOTE: First appeared in firmware 20091601

Last updated Sep 16, 2020