---
title: "Discussion on \"Rounding Line Items So They Add Up: Largest Remainder Allocation in TypeScript\" | Hashnode"
description: "Discussion on \"Rounding Line Items So They Add Up: Largest Remainder Allocation in TypeScript\". Why rounding each line breaks the total, and how to fix it for ranges too"
url: "https://hashnode.com/posts/rounding-line-items-so-they-add-up-largest-remainder-allocation-in-typescript/6ac89a3dd230c3ed09c0d8a3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rounding Line Items So They Add Up: Largest Remainder Allocation in TypeScript](https://horushe.hashnode.dev/rounding-line-items-so-they-add-up-largest-remainder-allocation-in-typescript?utm_source=hashnode&utm_medium=feed)

Why rounding each line breaks the total, and how to fix it for ranges too

Oct 9 · 9 min read · horushe.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[horus cyber](https://hashnode.com/@horushe)

@horushe

  
[View profile](https://hashnode.com/@horushe)

Make funny things

Make funny things to lead a happy life.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
