← Back to team overview

sikuli-driver team mailing list archive

[Bug 2125646] [NEW] Attendance Calculator rounding error for decimal percentages

 

Public bug reported:

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 ).

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

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
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:
  New

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 ( https://attendencecalculator.com ).

  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



Follow ups