freebsd-nq/tests/dc/decimal.txt
Stefan Eßer 1f958cfad7 Import new 2-clause BSD licenced implementation of the bc and dc commands
These implementations of the bc and dc programs offer a number of advantages
compared to the current implementations in the FreeBSD base system:

- They do not depend on external large number functions (i.e. no dependency
  on OpenSSL or any other large number library)

- They implements all features found in GNU bc/dc (with the exception of
  the forking of sub-processes, which the author of this version considers
  as a security issue).

- They are significantly faster than the current code in base (more than
  2 orders of magnitude in some of my tests, e.g. for 12345^100000).

- They should be fully compatible with all features and the behavior of the
  current implementations in FreeBSD (not formally verified).

- They support POSIX message catalogs and come with localized messages in
  Chinese, Dutch, English, French, German, Japanese, Polish, Portugueze,
  and Russian.

- They offer very detailed man-pages that provide far more information than
  the current ones.

Approved by:	imp
Obtained from:	https://git.yzena.com/gavin/bc
Differential Revision:	https://reviews.freebsd.org/D19982
2020-06-27 15:03:19 +00:00

37 lines
1.9 KiB
Plaintext

0pR
0.0pR
.0000pR
000000000000000000000000.00000000000000000000000pR
000000000000000000000000000135482346782356pR
000000000000000000000000002pR
1pR
11pR
123pR
7505pR
1023468723275435238491972521917846pR
4343472432431705867392073517038270398027352709027389273920739037937960379637893607893607893670530278200795207952702873892786172916728961783907893607418973587857386079679267926737520730925372983782793652793pR
_1pR
_203pR
_57pR
_18586pR
_31378682943772818461924738352952347258pR
_823945628745673589495067238723986520375698237620834674509627345273096287563846592384526349872634895763257893467523987578690283762897568459072348758071071087813501875908127359018715023841710239872301387278pR
.123521346523546pR
0.1245923756273856pR
_.1024678456387pR
_0.8735863475634587pR
4.0pR
_6.0pR
234237468293576.000000000000000000000000000000pR
23987623568943567.00000000000000000005677834650000000000000pR
23856934568940675.000000000000000435676782300000000000000456784pR
77567648698496.000000000000000000587674750000000000458563800000000000000pR
2348672354968723.2374823546000000000003256987394502346892435623870000000034578pR
_2354768.000000000000000000000000000000000000pR
_96739874567.000000000347683456pR
_3764568345.000000000004573845000000347683460pR
_356784356.934568495770004586495678300000000pR
74325437345273852773827101738273127312738521733017537073520735207307570358738257390761276072160719802671980267018728630178.7082681027680521760217867841276127681270867827821768173178207830710978017738178678012767377058785378278207385237085237803278203782037237582795870pR
_756752732785273851273728537852738257837283678965738527385272983678372867327835672967385278372637862738627836279863782673862783670.71738178361738718367186378610738617836781603760178367018603760178107735278372832783728367826738627836278378260736270367362073867097307925pR
9812734012837410982345719208345712908357412903587192048571920458712.23957182459817249058172945781pR