Sends each scope line's quantity and unit to the bidding service.
How the precision is kept
The quantity is the takeoff's 64-bit value, rounded to 4 decimals at the moment it is put in the package. Nothing else is computed here.
Open item. Send the quantity as measured, or state on the package that quantities are rounded to 4 decimals.
Calculations under this policy
2 calculations in 1 source file. The code is read from the released app when this page loads. It is the calculation people run, not a copy kept for this page.
Rounds a quantity to 4 decimals before it is sent.
qty = round(v × 10000) ÷ 10000
Math.round(v × 10000) ÷ 10000: the product is rounded to a whole number, an exact half going toward +∞, then divided once. A non-finite value becomes null. The rounded value is what leaves the app.