[net.micro.pc] BCD math routines for C compilers

morse@lews2.DEC (Bob Morse MLO5-2/B6 223-6720) (01/27/86)

          
   Does anyone know of any subroutine packages for C compilers (especially
   Microsoft C 3.0) that handle large numbers encoded in BCD rather than
   binary form?  I am working on some accounting software which was
   originally written in DRI's CBASIC-86, which uses a BCD-encoded floating
   point scheme. It's quite useful to get exact decimal results rather than
   the occasional penny errors which arise from the binary fractions in the
   normal C "double" data type.  Those who have used Lotus 123 spread
   sheets for dollars and cents without careful attention to using the
   @round(...) function will know what I mean! 
 
Bob Morse