abfAddInteger()

Appends an integer value to the currently open component.

Syntax

void abfAddInteger (int val);

Inputs

val
The value to be appended.

Example

abfOpenDatatype("Acceleration");
abfOpenRequest("Head");
abfOpenComponent("X");
abfAddInteger(1);
abfAddInteger(2);
abfAddInteger(4);
abfAddInteger(8);

Comment

The integer is represented in the binary format specified by abfSetPrecision() or via abfDefaultPrecision().

The results of using abfAddInteger() with a component defined as floating point (via abfUseFloatingPoint (1)) are undefined.

The default is actually floating point, so it is necessary to use abfUseFloatingPoint(0) to specify in integer format.