Dewey Dunnington created ARROW-15007:
----------------------------------------

             Summary: [R] Creating Decimal type using the example fails
                 Key: ARROW-15007
                 URL: https://issues.apache.org/jira/browse/ARROW-15007
             Project: Apache Arrow
          Issue Type: Bug
          Components: R
            Reporter: Dewey Dunnington


>From the documentation:

{noformat}
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.
{noformat}


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

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




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to