gavinhoward / bc

An implementation of the POSIX bc calculator with GNU extensions and dc, moved away from GitHub. Finished, but well-maintained.
https://git.gavinhoward.com/gavin/bc
Other
145 stars 29 forks source link

Scale argument is ignored #55

Closed depler closed 1 year ago

depler commented 1 year ago

Hi! Here is my command line: bc.exe --mathlib --leading-zeroes --no-line-length --scale=100.

Last argument is ignored by some reason. As I see it --mathlib is overriding scale value

gavinhoward commented 1 year ago

Nice to have you back! Sorry that I rejected your original feature request for --scale; I was wrong to do so.

I have reproduced the issue. I think you are right with what is happening.

I'll get to work on fixing it.

gavinhoward commented 1 year ago

Stupid GitHub automatically closing issues.

Can you please pull the latest master and check if it does what you want? In the meantime, I'll get started on the release process.

depler commented 1 year ago

Yep, it works now. Thanks!

gavinhoward commented 1 year ago

Yay! Version 6.0.2 should come out in the next day or two. Thank you for your report!

gavinhoward commented 1 year ago

It's taking a little longer to get the release out. There are problems with FreeBSD. I need to fix those problems before I release. I'm sorry.

I'll let you know when 6.0.2 is out.

gavinhoward commented 1 year ago

6.0.2 is out.

That should fix the issue for you. Feel free to reopen if it does not.