%I_FLDPREC

Retrieve an input field’s precision

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
precision = %I_FLDPREC(window_id, field_spec)

precision

This function returns the precision as an integer value. (^VAL)

window_id

The ID of the input window containing the field. (n)

field_spec

The field specification for the field whose precision %I_FLDPREC will retrieve. (See Field specifications for information.) (a)

%I_FLDPREC returns the precision (number of places to the right of the decimal point) for the field. If the field is not an implied-decimal field, the return value is zero.

If either window_id or field_spec is invalid, a fatal error occurs.

You do not need to declare this function to use it. It is defined in tools.def.

The following example returns the number of decimal places for field amount.

numdec=%i_fldprec(wndid, "amount")