November 21, 2012, 08:02 AM
DeepuConversion from Floating-point format( F6.2S ) to intergert or D12.2S to intergert
Hi
can any one tell me
how to convert from Floating-point format( F6.2S )to integer format
or
Decimal Format to integer format
ex:
614.2-->614
1.00-->1
like this
can any one hlep me Plz
November 21, 2012, 08:29 AM
jimster06Have you considered DEFINE or COMPUTE?
November 21, 2012, 11:34 PM
Deepuconsidered DEFINE Filed
November 22, 2012, 09:18 AM
TwanetteHi,
Have you tried something as simple as:
DEFINE FILE CAR
ISALES/I9 = SALES ;
END
Bear in mind that this "truncates" the value i.e.
614.2 --> 614
as well as e.g.
614.9 --> 614
If you want it to "round" the value rather than truncate, you'll need to look at using functions like ROUND and FPRINT.