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

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

C++
void round(
    int year
);
Parameters 
Description 
int year 
Year of benefit increase, or year prior to year of wage-indexed formula. 

Uses the stored amount to call the static version with 2 arguments. 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!