Skip to content

Commit 70ec146

Browse files
Update api.bs
Co-authored-by: Charlie Harrison <[email protected]>
1 parent 1ab53d5 commit 70ec146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ To <dfn>fairly allocate credit</dfn>, given a [=list=] of doubles |credit| and a
17051705
1. Let |rawNormalizedCredit| be a new [=list=].
17061706
1. Let |normalizedCredit| be a new [=list=].
17071707
1. [=list/iterate|For each=] |item| of |credit|:
1708-
1. Let |rawNormalized| be |item| / |sumCredit| * |value|.
1708+
1. Let |rawNormalized| be |value| * |item| / |sumCredit|.
17091709
1. [=list/Append=] |rawNormalized| to |rawNormalizedCredit|.
17101710
1. Let |normalized| be |rawNormalized| rounded towards positive Infinity and converted to an integer.
17111711
1. [=list/Append=] |normalized| to |normalizedCredit|.

0 commit comments

Comments
 (0)