mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-22 20:40:48 +01:00
update README
This commit is contained in:
parent
778765bb9d
commit
16f1ec9225
2 changed files with 25 additions and 1 deletions
13
.travis.yml
Normal file
13
.travis.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- 1.1
|
||||||
|
- 1.2
|
||||||
|
- 1.3
|
||||||
|
- tip
|
||||||
|
|
||||||
|
install:
|
||||||
|
- go build .
|
||||||
|
|
||||||
|
script:
|
||||||
|
- go test -v
|
13
README.md
13
README.md
|
@ -1,9 +1,20 @@
|
||||||
# decimal
|
# decimal [![Build Status](https://travis-ci.org/jellolabs/decimal.png?branch=master)](https://travis-ci.org/jellolabs/decimal)
|
||||||
|
|
||||||
Arbitrary-precision fixed-point decimal numbers in go.
|
Arbitrary-precision fixed-point decimal numbers in go.
|
||||||
|
|
||||||
NOTE: can "only" represent numbers with a maximum of 2^31 digits after the decmial point.
|
NOTE: can "only" represent numbers with a maximum of 2^31 digits after the decmial point.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* addition, subtraction, multiplication with no loss of precision
|
||||||
|
* division with specified precision
|
||||||
|
* database/sql serialization/deserialization
|
||||||
|
* json and xml serialization/deserialization
|
||||||
|
|
||||||
|
## Notable users
|
||||||
|
|
||||||
|
This is currently being used in production by [Spring](https://shopspring.com/), and has been since August 14, 2014.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
Loading…
Reference in a new issue