View previous topic :: View next topic
|
Author |
Message |
jagan403
New User
Joined: 10 Aug 2009 Posts: 6 Location: hyderabad
|
|
|
|
Can any one expleain the dif b/w implied decimal and displayed decimal.
the data prev am getting in implied decimal format PIC +9(7).999.
now i need to change it to displayed decimal format can any one help me out in this regarding. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Implied decimals are used in calculations and comparisons. "Displayed" decimals are placed on screens and reports and are more readable.
Move the implied decimal field to an edited output field (i.e. pic zz,zzz.99-). |
|
Back to top |
|
|
jagan403
New User
Joined: 10 Aug 2009 Posts: 6 Location: hyderabad
|
|
|
|
Thank you.
but could u explain little bit elabarate how exactly we can write data in displyed decimal format, like i wrote +9(7).9999 for implied decimal. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I would consider +9(7).9999 as displayed decimal format since the decimal point is part of the PICTURE. Implied decimal would be something like S9(7)V9(4) -- the V means the decimal point occurs between the two digits but there is no decimal point stored in the data value: 1234567987R would be the internal representation of -1234567.9879, for example. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Another way of saying this is that an implied decimal does not use any storage; a displayed decimal uses 1 byte of storage. |
|
Back to top |
|
|
jagan403
New User
Joined: 10 Aug 2009 Posts: 6 Location: hyderabad
|
|
|
|
+9(7).9999 its not displayed decimal format,its a implied decimal format at present my code with +9(7).99999,i need to change this to displayed decimal format.
thanks,
jagan |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
jagan403 wrote: |
+9(7).9999 its not displayed decimal format,its a implied decimal format at present my code with +9(7).99999,i need to change this to displayed decimal format.
thanks,
jagan |
RTFM |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Dick and Robert have already answered your question. What don't you understand? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Perhaps if you explain what YOU mean by "displayed decimal format" we can offer advice. As multiple posts have indicated, the way you are using this term is not the same as standard industry references -- so we don't know what you mean by this term. Give us examples with internal representations of the differences. Also, what language are you wanting to implement this in? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
+9(7).9999 its not displayed decimal format,its a implied decimal format at present my code with +9(7).99999,i need to change this to displayed decimal format. |
How do you conclude this? |
|
Back to top |
|
|
jagan403
New User
Joined: 10 Aug 2009 Posts: 6 Location: hyderabad
|
|
|
|
conclusion:
Implied decimal 9(06)V9(5) to displayed decimal 9(06).9(05) |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
This thread seems to have gone nowhere in 5 days. Jagen, have you even cracked open the Language Reference Manual? It has your answer. |
|
Back to top |
|
|
|