First page Back Continue Last page Overview Text

Notes:


...But I'll give one example of using context objects. Here we get the per-thread context object, and set the precision to just 2, and specify that the rounding is ROUND_HALF_UP.

Notice that the precision doesn't affect an object where we specify that it has 6 digits. But when we multiply x and y, the result gets rounded off to the current precision.