Hello. Taking the notes from Joseph under consideration, I have developed a fairly working patch for roundeven, attached herewith. I have done bit-wise calculations to check for halfway cases, though HOST_WIDE_INT is only used to check for even and odd numbers (or is it necessary to do bit-wise for this too?). Also, why unsigned long sig[SIGSZ] in real_value has to be an array? (for 64 bit system, its an array of size 3, mostly first 2 values being 0?). Thanks. Regards, -Tejas