The IBM i standard library provides the _DecimalT class for working with decimal numbers. However, compared to working on this type from C or RPG programs, working through the _DecimalT class is significantly inferior in performance (for a division operation, for example, about 10 times slower). The specified class uses function calls from standard service programs to perform operations on the decimal type. I think that slowdown happens just because of calls of these functions. Does anyone have any idea how to work with the decimal type from C++ programs more efficiently? Is it possible to use (directly or indirectly) the MI DIV instruction?