Package: decimal 0.1.1.9000

decimal: Exact Arbitrary-Precision Decimal Vectors

Arbitrary-precision vectors with an exact decimal representation, avoiding the rounding surprises of binary floating point. Built on the 'mpdecimal' C library, arithmetic is governed by an explicit decimal context controlling precision, rounding, and signaling, and vectors integrate with 'vctrs' for use in data frames, 'tibble' objects, summaries, and common numeric workflows. Missing values, signed zeros, infinities, and not-a-number values are supported throughout. The arithmetic model follows Cowlishaw (2009) "General Decimal Arithmetic" <https://speleotrove.com/decimal/decarith.html>.

Authors:Pedro Baltazar [aut, cre, cph], Stefan Krah [ctb, cph]

decimal_0.1.1.9000.tar.gz
decimal_0.1.1.9000.zip(r-4.7-x86_64)decimal_0.1.1.9000.zip(r-4.7-arm64)decimal_0.1.1.9000.zip(r-4.6-x86_64)decimal_0.1.1.9000.zip(r-4.6-arm64)decimal_0.1.1.9000.zip(r-4.5-x86_64)
decimal_0.1.1.9000.tgz(r-4.6-x86_64)decimal_0.1.1.9000.tgz(r-4.6-arm64)decimal_0.1.1.9000.tgz(r-4.5-x86_64)decimal_0.1.1.9000.tgz(r-4.5-arm64)
decimal_0.1.1.9000.tar.gz(r-4.7-arm64)decimal_0.1.1.9000.tar.gz(r-4.7-x86_64)decimal_0.1.1.9000.tar.gz(r-4.6-arm64)decimal_0.1.1.9000.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
decimal/json (API)

# Install 'decimal' in R:
install.packages('decimal', repos = c('https://pedrobtz.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/pedrobtz/decimal/issues

Pkgdown/docs site:https://pedrobtz.github.io

On CRAN:

Conda:

5.56 score 4 stars 7 scripts 432 downloads 27 exports 6 dependencies

Last updated from:985d37fc60. Checks:14 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK130
linux-devel-x86_64OK128
source / vignettesOK216
linux-release-arm64OK133
linux-release-x86_64OK123
macos-release-arm64OK116
macos-release-x86_64OK678
macos-oldrel-arm64OK207
macos-oldrel-x86_64OK727
windows-devel-arm64OK247
windows-devel-x86_64OK134
windows-release-arm64OK240
windows-release-x86_64OK101
windows-oldrel-x86_64OK109
wasm-releaseFAIL93

Exports:adjustedarrow_as_data_framearrow_decimal_typeas_decimalclear_decimal_flagsdecimaldecimal_contextdecimal_flagsdecimal_from_doublefmaget_decimal_contextis_decimalis_normalis_qnanis_signedis_snanis_subnormalis_zerolocal_decimal_contextmpdecimal_versionNA_decimal_normalizenumber_classquantizesame_quantumset_decimal_contextwith_decimal_context

Dependencies:cligluelifecyclerlangvctrswithr

Arrow Decimal Types
A name collision to know about | From Arrow to decimal | Scale comes along for free | Nulls become NA | Chunked arrays work the same way | Integer columns | From decimal to Arrow | Pinning the type | Plain fields, and when you want one | Whole tables and Parquet files | Decimal columns written elsewhere | Where the two type systems differ

Last update: 2026-09-23
Started: 2026-09-22

Decimal Values
Creating decimal vectors | Scale: how many decimal places? | What about doubles? | Decimals are well-behaved vectors | In a data.table | Arithmetic | Special values | Rounding and other decimal tools | Where to next

Last update: 2026-09-23
Started: 2026-07-31

Contexts and Signals
The default context | Changing the context, temporarily | Signals and sticky flags | Reporting signals | Traps: turning signals into errors | Classifying values

Last update: 2026-07-31
Started: 2026-07-31