Collapse All

Anypia Programmer's Documentation |  |

BenefitAmount::round Method (double, int)
BenefitAmount Class BenefitAmount Members round Method Send Feedback

Rounds a specified PIA or MFB to the appropriate multiple of $0.10.

C++

    static double round(
        double theAmount,
        int year
    );

Parameters

Parameters | Description
double theAmount | Amount to be rounded.
int year | Year of benefit increase, or year prior to year of wage-indexed formula.

Returns

The rounded amount.

Remarks

Round a cola calculation up for June 1981 and earlier colas, down for June 1982 and later colas. Round an aime pia calculation up for 1982 and earlier eligibility, down for 1983 and later eligibility.

Exceptions

Exceptions | Description
PiaException | PiaException of type PIA_IDS_ROUND if year is less than 1937 (only in debug mode).

Group

round Method

Links
BenefitAmount Class, BenefitAmount Members, round Method

Copyright (c) 2010. All rights reserved.
Contents | Index | Home
What do you think about this topic? Send feedback!