Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
BenefitAmount::round Method (double, int)

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

C++
static double round(
    double theAmount, 
    int year
);
Parameters 
Description 
double theAmount 
Amount to be rounded. 
int year 
Year of benefit increase, or year prior to year of wage-indexed formula. 

The rounded amount.

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 
Description 
PiaException of type PIA_IDS_ROUND if year is less than 1937 (only in debug mode).  
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!