alpacadecimal icon indicating copy to clipboard operation
alpacadecimal copied to clipboard

Arbitrary-precision fixed-point decimal numbers in go. Similar and compatible with shopspring's decimal.Decimal, but optimized for Alpaca's data sets.

Results 4 alpacadecimal issues
Sort by recently updated
recently updated
newest added

As reported in https://github.com/shopspring/decimal/issues/347, the examples for the -1.454 case are wrong.

In this pull request, I have added two methods to satisfy the `Marshaler` and `Unmarshaler` interfaces in the [gqlgen](https://github.com/99designs/gqlgen) library. These interfaces can be found in the [jsonw.go](https://github.com/99designs/gqlgen/blob/470fca87d3002399fb02e14cf014c3c26755d87b/graphql/jsonw.go) file at...

sometimes, we have external API that returns `decimal.Decimal`, and we need to convert these instances to `alpacadecimal.Decimal`. currently, we can do this converson via "string" (decimal.Decimal -> string -> alpacadecimal.Decimal)....

i hope old test will cover all case ...