News for hackers. Stuff that matters.
Re:GNU bc ends 11-year beta test, releases 1.7 by seanp2k2 on Wednesday April 05, 2017 @04:10PM (#14045165)
To commemorate this momentous achievement, they're changing the name to `ad`
Re:GNU bc ends 11-year beta test, releases 1.7 by exhilaration on Wednesday April 05, 2017 @02:27PM (#14044362)
For those unfamiliar with bc, here's the man page: https://www.gnu.org/software/bc/manual/html_mono/bc.html
Re:GNU bc ends 11-year beta test, releases 1.7 by amirouche on Wednesday April 05, 2017 @03:09PM (#14044689)
> an arbitrary precision calculator language

Everybody use GNU Guile already :)

Re:GNU bc ends 11-year beta test, releases 1.7 by sussjsiisiwk on Wednesday April 05, 2017 @07:03PM (#14046504)
Here's a handy bc wrapper I picked up somewhere.

    cat /usr/local/bin/solve                                                               
    #!/bin/sh
    bc << EOF
    scale=4
    $@
    quit
    EOF

$ solve "4*49+732"
Re:GNU bc ends 11-year beta test, releases 1.7 by barelyusable on Wednesday April 05, 2017 @02:50PM (#14044532)
Come on guys. Everyone knows real h4ck3rs are using apcalc: http://www.isthe.com/chongo/tech/comp/calc/calc-mirror.html
Re:GNU bc ends 11-year beta test, releases 1.7 by ComputerGuru on Wednesday April 05, 2017 @03:01PM (#14044624)
Care to expound on the differences between the two?
Re:GNU bc ends 11-year beta test, releases 1.7 by paxcoder on Wednesday April 05, 2017 @03:03PM (#14044644)
What reference am I missing here?
Re:GNU bc ends 11-year beta test, releases 1.7 by darpa_escapee on Wednesday April 05, 2017 @05:17PM (#14045709)
My high school had Calc AB, Calc BC and AP Calc.
Re:GNU bc ends 11-year beta test, releases 1.7 by ufo on Wednesday April 05, 2017 @02:38PM (#14044451)
What changed from 1.06 to 1.07?
Re:GNU bc ends 11-year beta test, releases 1.7 by dennisse on Wednesday April 05, 2017 @02:48PM (#14044514)
Re:GNU bc ends 11-year beta test, releases 1.7 by EddieRingle on Wednesday April 05, 2017 @02:42PM (#14044475)
Unsure, but it broke compilation of the Linux kernel for me. (linux-mainline on Arch)
Re:GNU bc ends 11-year beta test, releases 1.7 by pmiller2 on Wednesday April 05, 2017 @04:53PM (#14045518)
Why is bc even needed for a kernel compile?!?
Re:GNU bc ends 11-year beta test, releases 1.7 by avar on Wednesday April 05, 2017 @05:41PM (#14045897)
It replaced a Perl script used to create time constants at compile time: http://www.spinics.net/lists/linux-kbuild/msg07241.html
Re:GNU bc ends 11-year beta test, releases 1.7 by bandrami on Wednesday April 05, 2017 @02:43PM (#14044478)
The changelog covers 16 years, and is 1500 lines long
Re:GNU bc ends 11-year beta test, releases 1.7 by asveikau on Wednesday April 05, 2017 @06:19PM (#14046182)
The US president 3 times over? (According to the changelog 1.06 is from the year 2000)
Re:GNU bc ends 11-year beta test, releases 1.7 by bfu on Thursday April 06, 2017 @08:51AM (#14050027)
There are very few console programs which thinks they know better than me what I want when I press Ctrl+C and bc is one of them.
Re:GNU bc ends 11-year beta test, releases 1.7 by Johnny_Brahms on Thursday April 06, 2017 @01:49AM (#14048251)
As someone that has done most my maths using perl during the 90s and lately scheme, I have managed to miss BC completely.

Since some people here seem to use it daily, are there any other reasons to use it than "i am used to it" or that you actually need arbitrary precision?

Re:GNU bc ends 11-year beta test, releases 1.7 by paxcoder on Wednesday April 05, 2017 @03:13PM (#14044713)
Does anyone know why the default scale is 0 (meaning division rounds down by default)?
Re:GNU bc ends 11-year beta test, releases 1.7 by rsync on Wednesday April 05, 2017 @03:37PM (#14044891)
No idea but initial system setup on every system I touch is to alias bc to 'bc -l'.

I use bc tens of times per day ...

Re:GNU bc ends 11-year beta test, releases 1.7 by xorcist on Wednesday April 05, 2017 @05:36PM (#14045860)
I use bc all the time, yet I still managed to miss that option. Thanks!
Re:GNU bc ends 11-year beta test, releases 1.7 by bandrami on Wednesday April 05, 2017 @07:29PM (#14046639)
Historical compatibility. Back in the day you couldn't always guarantee you even had a coprocessor, so scale > 0 could get arbitrarily expensive.
Re:GNU bc ends 11-year beta test, releases 1.7 by dgquintas on Wednesday April 05, 2017 @02:28PM (#14044365)
1.07, actually. Title is wrong.
Re:GNU bc ends 11-year beta test, releases 1.7 by bandrami on Wednesday April 05, 2017 @02:31PM (#14044398)
Gah, sorry. Touch-typing failed me again.
Re:GNU bc ends 11-year beta test, releases 1.7 by juliangoldsmith on Wednesday April 05, 2017 @02:44PM (#14044485)
I believe it should also be a 17-year beta test, since 1.06 was released in 2000.
Re:GNU bc ends 11-year beta test, releases 1.7 by bandrami on Wednesday April 05, 2017 @02:47PM (#14044506)
The last beta "release" (which AFAIK everybody has been using) was 1.06.95, in 2006
Re:GNU bc ends 11-year beta test, releases 1.7 by faho on Wednesday April 05, 2017 @03:28PM (#14044815)
macOS hasn't been. Which isn't surprising, since 1.06.95 switched to GPLv3 (like most GNU projects).
Re:GNU bc ends 11-year beta test, releases 1.7 by OneOneOneOne on Wednesday April 05, 2017 @06:34PM (#14046292)
In bc 10 / 3 => 3

It yields integer values unless started with -l option. What's up with that?

Re:GNU bc ends 11-year beta test, releases 1.7 by yrro on Wednesday April 05, 2017 @06:50PM (#14046405)
bc has a scale variable, which determines the precision of calculations. By default it is 0, but running with -l sets it to 20 (among other things).
Re:GNU bc ends 11-year beta test, releases 1.7 by tmaly on Wednesday April 05, 2017 @02:19PM (#14044295)
Finally! I have been waiting for them forever
Re:GNU bc ends 11-year beta test, releases 1.7 by bandrami on Wednesday April 05, 2017 @02:32PM (#14044408)
No announcement on info-gnu or on the bc web page; I only noticed because I was about to download the ancient version to check something.