From 15c599770777f0a9421aaa6c94c7a6ae8a70ada9 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 8 Dec 2021 10:35:52 +0100 Subject: [PATCH] docs(variants): clarify weight distribution --- website/docs/advanced/feature-toggle-variants.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/advanced/feature-toggle-variants.md b/website/docs/advanced/feature-toggle-variants.md index 221ad26ee2..6a6e84bfc8 100644 --- a/website/docs/advanced/feature-toggle-variants.md +++ b/website/docs/advanced/feature-toggle-variants.md @@ -56,6 +56,8 @@ For instance, if you have three variable weight variants and two fixed weight va 2. Divide the remainder by the number of variable weight variants: 60 / 3 = 20 3. Assign each variable weight variant the same (up to rounding differences) weight: 20% +In the example above, 60 divides cleanly by three. In cases where the remainder doesn't divide evenly among the variable weight variants, Unleash will distribute it as evenly as it can to one decimal's precision. If you have three variable weight variants, they will be weighted at 33.4, 33.3, and 33.3 respectively, so that it adds up to 100.0. + #### Overrides :::note