Skip to content

[R] Creating Decimal type using the example fails #30526

Description

@asfimport

From the documentation:


As an example, decimal128(7, 3) can exactly represent the numbers 1234.567 and -1234.567 (encoded internally as the 128-bit integers 1234567 and -1234567, respectively), but neither 12345.67 nor 123.4567.

...but when we try this, we get:

library(arrow, warn.conflicts = FALSE)
Array$create(1234.567, type = decimal128(7, 3))
#> Error: NotImplemented: Extend

Reporter: Dewey Dunnington / @paleolimbot

Related issues:

Note: This issue was originally created as ARROW-15007. Please see the migration documentation for further details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions