erovira / transa-script

Shell script to compute the Itaú/BROU mean USD/UYU exchange rate
7 stars 2 forks source link

Trailing zeros in brou buy/sell #11

Closed erovira closed 1 year ago

erovira commented 1 year ago
└─ $ ▶ transa brou
eBROU compra y venta: 38.40000, 39.90000
(38.40000 + 39.90000) / 2 = 39.15000000000000000000

└─ $ ▶ transa itau
Itaú compra y venta: 38.20, 40.00
(38.20 + 40.00) / 2 = 39.10000000000000000000

Itaú buy/sell has only two decimal digits, whereas brou has more (all being zeros). Brou should display the buy/sell in the same format as itaú (2 decimal digits)