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

Does DB2 support -0(negative zero) in Decimal type


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aravindababua

New User


Joined: 25 Jun 2007
Posts: 1
Location: chennai

PostPosted: Mon Jun 25, 2007 7:11 pm
Reply with quote

Hi Friends,
For a requirement i want to store -0 (Negative Zero) in DB2 table the column type to which i need to negative zero is Decimal(9,2).But -0 is not getting stored in table its getting stored as +0(positive zero). i want to know does Db2 does'nt support -0 in Decimal type columns?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Jun 25, 2007 7:36 pm
Reply with quote

Hello,

What is the requirement to have a negative zero? Zero is just that - zero.

In any collating sequence/system i've ever seen, zero comes between +1 and -1. How would your requirement not match this?

If you explain your requirement, we may be able to offer suggestions.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
No new posts Unable to interpret a hex value to De... COBOL Programming 7
No new posts Sort based on the record type DFSORT/ICETOOL 1
No new posts small int to zoned decimal conversion DFSORT/ICETOOL 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:


Back to Top