Skip to main content

alphaWorks  >  Forums  >  decNumber++  >  developerWorks

Add/Subtract operation are not working on decimal number    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
khandelwal.amit

Posts: 1
Registered: Oct 09, 2008 08:50:18 AM
Add/Subtract operation are not working on decimal number
Posted: Oct 09, 2008 08:54:30 AM
Click to report abuse...   Click to reply to this thread Reply
I am able to do intiailize the decimal64 number and do the comparison operation correctly. However, the add/subtract operation are not working. Here the details of my system.

decConfig.h

#define _DEC_LONGDOUBLE128 1
#define _DEC_LITTLE_ENDIAN 1

Linux 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux

gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

Also, I am getting the following warning when I compile the code.

./impl/decIO.h:565: warning: large integer implicitly truncated to unsigned type

Any suggestions ?


Point your RSS reader here for a feed of the latest messages in all forums