erovira / transa-script

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

Decimal separator is not always the same #9

Closed erovira closed 1 year ago

erovira commented 1 year ago

First case: Dot is being used everywhere except for the right member of the transa, where a comma is being used. Second case: Analogous to the first one.

Script should be consistent and use dots everywhere.

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

TRANSA: U$S 1000.00 = $ 39100,00

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

TRANSA: U$S 25,58 = $ 1000.00