← Back to team overview

sikuli-driver team mailing list archive

[Bug 2125646] Re: Attendance Calculator rounding error for decimal percentages

 

** Changed in: sikuli
       Status: New => Invalid

** Description changed:

  When calculating attendance percentage, the result is sometimes rounded
  incorrectly at the second decimal place. This happens in edge cases
  where the division produces a repeating decimal (e.g., 2/3 = 66.666...).
  
  Steps to Reproduce:
  
- Open the Attendance Calculator ( https://attendencecalculator.com ).
+ Open the Attendance Calculator
  
  Enter Total Classes = 3.
  
  Enter Attended Classes = 2.
  
  Click Calculate.
  
  Expected Result:
  Attendance should be displayed as 66.67% (rounded to 2 decimal places).
  
  Actual Result:
  Attendance is displayed as 66.66%, which is technically truncated rather than rounded.
  
  Environment:
  
  Browser: Chrome 118 / Firefox 115
  
  OS: Windows 11 / macOS Ventura
  
  Date Tested: September 24, 2025

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/2125646

Title:
  Attendance Calculator rounding error for decimal percentages

Status in SikuliX:
  Invalid

Bug description:
  When calculating attendance percentage, the result is sometimes
  rounded incorrectly at the second decimal place. This happens in edge
  cases where the division produces a repeating decimal (e.g., 2/3 =
  66.666...).

  Steps to Reproduce:

  Open the Attendance Calculator

  Enter Total Classes = 3.

  Enter Attended Classes = 2.

  Click Calculate.

  Expected Result:
  Attendance should be displayed as 66.67% (rounded to 2 decimal places).

  Actual Result:
  Attendance is displayed as 66.66%, which is technically truncated rather than rounded.

  Environment:

  Browser: Chrome 118 / Firefox 115

  OS: Windows 11 / macOS Ventura

  Date Tested: September 24, 2025

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/2125646/+subscriptions



References