zero
New User
Joined: 01 Dec 2007 Posts: 21 Location: Hyderabad
|
|
|
|
Hi Vel,
Generally floating point fields are defined in Ezt like this :
Percent W 3 P 2
here, "percent" is the field name.
"W" says that it is a working storage field. Here, "S" Can also be used.
"S" for Static.
"3" is the No. of bytes allocated for this field.
"P" says it is "Packed"
"2" is the No. of digits after Decimal Point.
if a field is of type Packed decimal, then, two digits can be stored in a Byte. that means, 4 bits are used to store a digit.
A packed decimal also stores sign (Positive or Negative) using 4 bits.
in the above example, we defined it to be 3 bytes. that means, 24 bits.
here, 4 bits are used for sign.
remaining, 20 bits are stored for Value. so, we can store 5 digits in the above field.
we mentioned 2 decimal places. So, we can store nos. like,
120.34, 987.45 and so on.
Define your field based on the Field in your table.
Hope this will help,
... |
|