pstadler / ticker.sh

Real-time stock tickers from the command-line.
MIT License
513 stars 87 forks source link

Invalid number #6

Closed kallekutta closed 6 years ago

kallekutta commented 6 years ago

Hello,

I get this when I try your script:

nils@HAL9000:/tmp$ ./ticker.sh AAPL AAPL 220,00./ticker.sh: line 73: printf: -0.5380001: invalid number ./ticker.sh: line 73: printf: -1.1900024: invalid number 0,00 (0,00%)

Do you know what's wrong?

pstadler commented 6 years ago

it works fine if you only query for AAPL once.

kallekutta commented 6 years ago

Seems like the formatting of github code went wrong. I'm only querying AAPL once, here is the full debug output.

`nils@HAL9000:/tmp$ bash -x ./ticker.sh AAPL

pstadler commented 6 years ago

can you try with LC_NUMERIC=en_US.UTF-8?

kallekutta commented 6 years ago

It works, thank you!