Maptitude GISDK Help

GetFieldDecimals()

Summary

Returns the number of displayed decimal places for a real-typed field.

 

Syntax

field_decimals = GetFieldDecimals(string field_spec)

 

Argument Contents
field_spec A field specification

 

Returns

An integer indicating the number of decimal places displayed. GetFieldDecimals() returns zero (0) if the field is integer-typed or string-typed.

 

Notes

Example

ndec = GetFieldDecimals("Employee.PayRate")

 

Error Codes

Error Type Meaning
Error The input field specification is ambiguous
NotFound The input field does not exist

 

See Also

Function Summary
SetFieldDecimals() Changes the number of displayed decimals for a real-typed field
GetFieldInfo() Returns the data type, display width, decimals, and index flag for a field

 

 

©2025 Caliper Corporation www.caliper.com