fixed(var float)

Returns the fixed format value of a variable that was converted to floating point through the floatv() instruction, or is an element of a transformation matrix.

Parameters:

float - float value to converted in fixed format

Return:

float as fixed format

Speed:

Fast

Remarks:

For C-Script only; in lite-C the conversion to var is handled automatically.

Example:

a = fixed(floatv(x)); // a == x

See also:

floatv, floatr, floatd