Signed float variable representation

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
Rajapriyaa
Member
Posts: 12
Joined: Fri Apr 17, 2009 11:22 am

Signed float variable representation

Post by Rajapriyaa » Wed Jun 24, 2009 3:56 pm

Hi,
I have a doubt in sign notation. If we are moving a S9(16)V99 COMP-3 to a S9(16)v99 we are getting the lastbyte somewhat different. For example i have moved -15.98 to sign variable. If we display it, its showing as 159Q. What does this Q represent. Will it include both sign bit and the last digit 8.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Jun 24, 2009 4:11 pm

the verbiage in your title displays the fact that you have not even attempted to look at a COBOL programmers Guide, which will explain internal storage of numerics based on datatype.

also, this question has been asked and answered on the board, use the search facility and take a look at a manual.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Jun 24, 2009 6:47 pm

If I'm not mistaken this question is been answered on other board..!
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others