IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How the value will be stored if it is like 2power-2


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Jun 20, 2007 2:50 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jun 20, 2007 4:45 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts Stored procedure cpu utilization DB2 1
No new posts Execute DSNTEP2 in REXX which is call... CLIST & REXX 4
Search our Forums:

Back to Top