{
  "id": 22428909,
  "title": "Why 1.26 cubic metres of concrete comes out as 70 bags, or 71, depending on where you round",
  "url": "https://urgent.news/2026/11/28/why-1-26-cubic-metres-of-concrete-comes-out-as-70-bags-or-71",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-28T19:22:53.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/owen_zhang_e9c74da15a9fed/why-126-cubic-metres-of-concrete-comes-out-as-70-bags-or-71-depending-on-where-you-round-fjd"
  },
  "original_language": null,
  "account": "The calculation of concrete bags for a slab depends on four factors: volume, margin, bag yield, and rounding precision. A 4 m by 3 m slab with a 0.1 m depth requires 1.26 cubic meters of concrete, accounting for a 5% margin. The yield of a 36 kg bag is 0.018 cubic meters. Using the formula volume / bag yield results in 70.00000000000001, and rounding up using Math.ceil() gives 71 bags. However, rounding the ratio before applying the ceiling can yield 70 bags. The order of operations also affects the result, as applying the margin before or after the division, or to the rounded result, produces different outcomes. The margin chosen can significantly impact the final result, with a 10% margin resulting in 74 bags for the same slab. To avoid ambiguity and ensure consistency, it is crucial to keep the volume, margin, bag yield, and rounding precision in one place.",
  "summary": "A 4 by 3 metre slab at 100 mm deep is 1.2 cubic metres. Add the usual 5 percent margin and you have 1.26. Divide by the yield on the bag and the order should be 70 bags. Written as code, that calculation returns 71, and the extra bag is not a rounding-up for safety. It is a rounding error, and it is one of four places where the same order can drift by a bag or by fifteen. This is a small post…",
  "summary_source": "publisher",
  "key_points": [
    "Concrete volume, margin, bag yield, and rounding precision determine bag count",
    "4 m by 3 m slab with 0.1 m depth requires 1.26 cubic meters of concrete",
    "Rounding 70.00000000000001 up yields 71 bags, but rounding ratio first yields 70 bags"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}