Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How the value will be stored if it is like 2power-2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
mnaaz

New User


Joined: 10 Jun 2007
Posts: 7
Location: india

PostPosted: Wed Jun 20, 2007 2:39 pm    Post subject: How the value will be stored if it is like 2power-2
Reply with quote

How the value will be stored if it is like 2power-2(i.e 2power of negative 2)?
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Jun 20, 2007 2:50 pm    Post subject: Re: Storage of 2exponentof-2.
Reply with quote

mnaaz wrote:
How the value will be stored if it is like 2power-2(i.e 2power of negative 2)?
Since the value is ".25" it would be stored as any value less than one would be stored.
What are you really looking for?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed Jun 20, 2007 4:45 pm    Post subject: Re: How the value will be stored if it is like 2power-2
Reply with quote

take a look at
http://en.wikipedia.org/wiki/Floating_point

and/or
http://en.wikipedia.org/wiki/IBM_Floating_Point_Standard

and/or
http://en.wikipedia.org/wiki/IEEE_754
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us