ruvim
ruvim

Reputation: 8564

Install dc in Cygwin

How to install dc (desktop calculator) in Cygwin?

dc is not found among Cygwin packages. Should it be compiled from the sources? What is the proper way?

Upvotes: 2

Views: 592

Answers (2)

Annie Y
Annie Y

Reputation: 1

dc is wrong in cygwin. The command dc -e "2i B.Cp" does a number clamping to 1.5, which is default in bc but not in dc. The correct value would be 17.

Do not install it.

Upvotes: 0

ruvim
ruvim

Reputation: 8564

dc is included into the package of bc (basic calculator). See the list of installed binaries at Cygwin Package Search website.

So, the command to install dc is:

apt-cyg install bc

Upvotes: 3

Related Questions