In: Accounting
What is the purpose of performing a range check in computer programming and data handling?
Many times data have upper and lower limits to their acceptable values. For example, if the range of pay rates for hourly employees in a firm is between 8 and 20 dollars, this control can examine the pay rate field of all payroll records to ensure that they fall within this range.
Data validation enforces acceptable value ranges. Example: hourly pay rates between $8 and $20 for all payroll records.