X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils.ts;h=7ac4ab25db67446a49b2fc42a0f219c043d4af6f;hb=6d1d4d956de1d48e51517014bc0b4c276bbf876a;hp=6d11f88cf6d964bfc9f36fe79b5c3eda3810d35b;hpb=c4dfd49dbde2f3af0adc4a33d582b1c653f859b5;p=poolifier.git diff --git a/src/utils.ts b/src/utils.ts index 6d11f88c..7ac4ab25 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -73,6 +73,7 @@ export const median = (dataSet: number[]): number => { /** * Rounds the given number to the given scale. + * The rounding is done using the "round half away from zero" method. * * @param num - The number to round. * @param scale - The scale to round to.