투표 비율 부정확함!

안녕하세요!

포럼에서 멤버들이 미트업 주제를 투표할 수 있도록 설문을 진행했는데, 백분율이 올바르게 계산되지 않는 것 같아 발견했습니다.

옵션은 5개이고 투표한 사람은 3명뿐인데, 백분율이 ‘34%’, ‘33%’, ‘33%’, 0, 0으로 표시됩니다. 다른 두 옵션과 마찬가지로 1명의 투표자만 있는 옵션이 왜 34%가 될까요?

스크린샷은 다음과 같습니다:

image

옵션당 1명씩 투표하도록 제한되어야 하므로 재현이 가능한지 모르겠지만, 코드는 다음과 같습니다:

[poll type="regular" results="always" public="true" name="lmis-poll-1" chartType="bar" dynamic="true"]
# **Which LMIS topic are you most interested in?**

* The batch/expiry Management Feature that will be Integrated in the RTS (Real Time Stock) app (Demo from Comoros implementation)
* Reviewing the newly published WHO NTD guidance and DHIS2 LMIS demo instances
* Workflow Integration with a central eLMIS
* Preview of the temperature monitoring integration, linked to the Cold Chain Equipment tool
* I will reply with my suggestion
[/poll]
Which LMIS topic are you most interested in?
  • The batch/expiry Management Feature that will be Integrated in the RTS (Real Time Stock) app (Demo from Comoros implementation)
  • Reviewing the newly published WHO NTD guidance and DHIS2 LMIS demo instances
  • Workflow Integration with a central eLMIS
  • Preview of the temperature monitoring integration, linked to the Cold Chain Equipment tool
  • I will reply with my suggestion
0 voters

이 일이 일어나는 가장 그럴듯한 이유는 100%를 3으로 나누면 33.333333333…%가 되기 때문이라고 생각합니다. 따라서 33%가 두 개(합계 66%)이고, 마지막에는 34%가 남게 됩니다.

그리고 네, Meta에도 있습니다.

2개의 좋아요

감사합니다! 네, 그 점은 알고 있지만, 만약 이것이 경쟁 투표였고 한 명(또는 동점)이 우승해야 하는 상황이라면 어떨까요? 여기서는 동점이 아니라, 누군가가 무작위로 우승자로 선정되게 됩니다.

1개의 좋아요