https://github.com/spagreeks/decimals.jl
https://github.com/spagreeks/decimals.jl
bigdecimal decimals julia julia-language
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/spagreeks/decimals.jl
- Owner: spagreeks
- License: mit
- Created: 2019-10-25T04:16:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T15:25:44.000Z (about 6 years ago)
- Last Synced: 2025-03-02T11:33:36.859Z (over 1 year ago)
- Topics: bigdecimal, decimals, julia, julia-language
- Language: Julia
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decimals
## Description
Decimal for Julia, like Java BigDecimal
## Usage
```julia
d1 = d"3.0"
d2 = d"-3E-10"
Decimal(-3, -10)
Decimal("3.0")
d1 + d2
d1 > d2
div(d1, d2, 16, RoundUp)
inv(d1)
```
See more usage in [tests](https://github.com/gfZeng/Decimals.jl/tree/master/test)
## Compares
The package provides the same features with another [Decimals.jl](https://github.com/JuliaMath/Decimals.jl/blob/master/src/Decimals.jl) package. But the implements is more simple, and the use more friendly, like Java BigDecimal.