Can you influence or change the generated outcome of a Gen numeric attribute in C regarding 'double' or 'long' data type?
If I have an attribute within an entity defined as numeric length 9, when generating the Action Block that contains the attribute, the attribute in generated in C as a 'long' data type.
When the attribute is increased in length within the model to numeric length 10, and the Action Block containing the attribute is generated in C, it is defined as a 'double' data type.
Is there any way to influence the generation process in Gen, so that the data item type for the above numeric example continues to be generated as a ‘long’ rather than a ‘double’ data type?
There is no way to change the generation process.
A numeric length 9 attribute will be generated as a 'long' data type and if the length goes beyond that it will be generated as a 'double' data type.
This is documented here in the Gen documentation (search on 'double'): Gen™ 8.6 > Developing > Designing > Using the Toolset > Attribute Messages and Dialogs > Attribute Dialog
The only related property to influence the generation of numeric fields in C is the decimal precision property for a numeric attribute. However, that parameter has no impact on the generated 'long' versus 'double' data type behaviour described above.