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.18 score 2 stars 6 scripts 381 downloads 27 exports 6 dependencies

Last updated from:425fb46fcd. Checks:14 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK123
linux-devel-x86_64OK157
source / vignettesOK224
linux-release-arm64OK122
linux-release-x86_64OK141
macos-release-arm64OK133
macos-release-x86_64OK216
macos-oldrel-arm64OK112
macos-oldrel-x86_64OK213
windows-devel-arm64OK205
windows-devel-x86_64OK133
windows-release-arm64OK209
windows-release-x86_64OK98
windows-oldrel-x86_64OK89
wasm-releaseFAIL114

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