freebsd-dev/contrib/bc/tests/dc/decimal_results.txt
Stefan Eßer 44d4804d19 usr.bin/ghä-bc, contrib/bc: update to version 5.0.0
Merge commit 2f57ecae4b

This is a new major release with a number of changes and extensions:

- Limited the number of temporary numbers and made the space for them
  static so that allocating more space for them cannot fail.
- Allowed integers with non-zero scale to be used with power, places,
  and shift operators.
- Added greatest common divisor and least common multiple to lib2.bc.
- Made bc and dc UTF-8 capable.
- Added the ability for users to have bc and dc quit on SIGINT.
- Added the ability for users to disable prompt and TTY mode by
  environment variables.
- Added the ability for users to redefine keywords.
- Added dc's modular exponentiation and divmod to bc.
- Added the ability to assign strings to variables and array elements
  and pass them to functions in bc.
- Added dc's asciify command and stream printing to bc.
- Added bitwise and, or, xor, left shift, right shift, reverse,
  left rotate, right rotate, and mod functions to lib2.bc.
- Added the functions s2u(x) and s2un(x,n), to lib2.bc.

MFC after:	1 week
2021-08-13 11:28:06 +02:00

55 lines
1.8 KiB
Plaintext

0
0
0
0
135482346782356
2
1
11
123
7505
1023468723275435238491972521917846
43434724324317058673920735170382703980273527090273892739207390379379\
60379637893607893607893670530278200795207952702873892786172916728961\
783907893607418973587857386079679267926737520730925372983782793652793
-1
-203
-57
-18586
-31378682943772818461924738352952347258
-8239456287456735894950672387239865203756982376208346745096273452730\
96287563846592384526349872634895763257893467523987578690283762897568\
459072348758071071087813501875908127359018715023841710239872301387278
.123521346523546
.1245923756273856
-.1024678456387
-.8735863475634587
4.0
-6.0
234237468293576.000000000000000000000000000000
23987623568943567.00000000000000000005677834650000000000000
23856934568940675.000000000000000435676782300000000000000456784
77567648698496.00000000000000000058767475000000000045856380000000000\
0000
2348672354968723.237482354600000000000325698739450234689243562387000\
0000034578
-2354768.000000000000000000000000000000000000
-96739874567.000000000347683456
-3764568345.000000000004573845000000347683460
-356784356.934568495770004586495678300000000
74325437345273852773827101738273127312738521733017537073520735207307\
570358738257390761276072160719802671980267018728630178.7082681027680\
52176021786784127612768127086782782176817317820783071097801773817867\
8012767377058785378278207385237085237803278203782037237582795870
-7567527327852738512737285378527382578372836789657385273852729836783\
72867327835672967385278372637862738627836279863782673862783670.71738\
17836173871836718637861073861783678160376017836701860376017810773527\
8372832783728367826738627836278378260736270367362073867097307925
9812734012837410982345719208345712908357412903587192048571920458712.\
23957182459817249058172945781
.28937
2893.982
198273.192837
.3982739
1892.238907