Gentee Programming Language > Documentation > Libraries Download documentation

odbcfield.getnumeric

Gets the field's value as a fixed point number. This method is applied for fields that contain fixed point numbers. The structure is applied for data of this type, as follows:
type numeric {
long val
uint scale
}

The val field contains the integer representation of a number, and the scale field indicates how many times val is divided by 10 in order to get a real number (a precision number).
 
numeric odbcfield.getnumeric(
      numeric   num
)

Parameters

numResult structure.

Return value

Returns the structure with the number obtained.


 Copyright © 2004-2006 Gentee Inc. All rights reserved.