Commit graph

  • ccbbb18386
    Merge 479eb53c8f into 6926256b71 Aqsha Padyani 2023-12-27 11:39:46 -0700
  • ff5a8f86db
    Merge 4f0d5886aa into 6926256b71 Mike 2023-12-27 11:39:46 -0700
  • 92943a2333
    Merge aaa563729a into 6926256b71 Elias Van Ootegem 2023-12-27 11:39:45 -0700
  • 8ebdad1a1b
    Merge 89e74deb20 into 6926256b71 Richard 2023-12-27 11:39:45 -0700
  • 6926256b71
    Allocate new(big.Int) in Copy method to deeply clone it (#278) Vadim Kulagin 2023-12-27 17:53:43 +0300
  • c1a7e5c494 update deprecated comment for Equals and StringScaled ferasalsaffar 2023-12-26 22:36:19 -0600
  • 94e1b03554 Refactor bsondec encoder/decoder to match latest api Patryk Kowalewski 2023-11-02 10:14:54 +0100
  • 32f3e9574f remove mgo Patryk Kowalewski 2023-10-31 07:56:23 +0100
  • 488943cead Merge branch 'master' into EMS-559-use-decimal-type-for-prices Patryk Kowalewski 2023-10-31 07:54:52 +0100
  • b50e14dc0b remove mgo dependency Patryk Kowalewski 2023-10-31 07:49:46 +0100
  • 750aa4ccb4 impl: Go mod; add decoder and encoder for official mongo driver Patryk Kowalewski 2021-02-02 12:09:15 +0100
  • 1320619538 add GetBSON SetBSON Krzysztof Skitek 2018-08-24 11:21:06 +0200
  • c6e64c1932
    add RoundUp & RoundDown Warren Guy 2023-10-20 19:24:02 +0100
  • 189891594c
    Merge pull request #4 from rainhq/add-is-positive-negative Warren Guy (Rain) 2023-10-20 19:07:57 +0100
  • 0d0e0691a1
    add IsPositive & IsNegative Warren Guy 2023-10-20 19:06:57 +0100
  • 4f0d5886aa feat: unmarshal empty string as zero hunjixin 2023-10-19 23:50:41 +0800
  • 584bc5502b
    optimize conversion Dean Eigenmann 2023-09-25 17:23:17 +0200
  • 479eb53c8f
    Update Rounding Examples Aqsha Padyani 2023-09-13 08:16:18 +0700
  • f4e2cf78c7
    Merge pull request #3 from rainhq/add-iszero Warren Guy (Rain) 2023-09-08 18:39:44 +0100
  • b4115f2326
    add IsZero() method Warren Guy 2023-09-07 00:47:04 +0100
  • 8d5817143e fix reset Decimal on Scan korableg 2023-08-29 12:26:30 +0700
  • 3cd9e92e93
    Merge pull request #4 from space307/feature/default-string-dont-trim-zero sstashchuk 2023-07-24 09:42:27 +0300
  • bbfbd140fd by default String() dont trim zeroes s.stashchuk 2023-07-24 09:40:17 +0300
  • 6634ed3fd9
    Merge pull request #3 from space307/feature/v2-module-version sstashchuk 2023-07-24 08:34:16 +0300
  • fbf23e333a v2 module version s.stashchuk 2023-07-24 08:00:53 +0300
  • 0583aa015a
    Merge pull request #2 from space307/feature/rename-module sstashchuk 2023-07-24 07:55:09 +0300
  • d78a15c21a rename module s.stashchuk 2023-07-24 06:42:49 +0300
  • fab395f9a7
    Merge pull request #1 from space307/feature/security-fixes sstashchuk 2023-07-24 06:28:53 +0300
  • 8a58ef5db9 security fixes s.stashchuk 2023-07-24 06:14:14 +0300
  • 22e39a3e42 Add initial implementation of natural logarithm mwoss 2023-07-23 17:13:23 +0200
  • aad5bc52e7
    Update decimal.go Frank 2023-07-13 19:06:37 +0800
  • aaa9a02fd2 Implement Is betweeen functionality Elirehema Paul 2023-06-11 11:16:16 +0300
  • 9ae3129fa6 Fix mod when the divisor is slightly greater than the half of dividend (#312) zlasd 2023-03-31 17:59:35 +0800
  • 149183c0a6 针对空字符串做出优化 qintang 2023-02-28 23:03:15 +0800
  • 2be5b677c4
    fix RoundDown example Andrei Khodko 2023-01-19 00:56:51 +0300
  • 788fc9513a Update README: Drop support for Go versions older than 1.7 Hiroaki Sano 2022-12-16 15:45:44 +0900
  • ac396becf6 CI, test build on the three latest Go version Hiroaki Sano 2022-12-16 15:44:50 +0900
  • 4c4f7f79a3 String() trailing zeros as package configuration marcos.lehmkuhl 2022-12-09 15:57:36 -0300
  • f1720b38c3 format marcos.lehmkuhl 2022-12-09 15:42:13 -0300
  • 0efd231eea Fix NumDigits with ensureInitialized zlasd 2022-11-24 06:12:12 +0000
  • 996426870d wip Anton Ponadiozin 2022-11-18 14:50:09 +0200
  • f97fdc765b wip Anton Ponadiozin 2022-11-18 14:48:41 +0200
  • 61e06315e3 wip Anton Ponadiozin 2022-11-18 14:24:52 +0200
  • 4e0c912651
    Change MarshalJSONWithoutQuotes default to true (#6) Deividas Dunda 2022-11-16 10:56:37 +0200
  • 04b54abf9e use to determine whether it equals 0 or not. r.Cmp(zeroInt) != 0 => r.Sign() != 0 terry 2022-11-05 14:10:29 +0800
  • 61aa7b37eb
    Change zero value to have zero exponent (#5) Matas 2022-11-03 10:31:54 +0200
  • 3c7c69cea8
    Add V2 version change (#4) Matas 2022-10-20 14:02:59 +0300
  • 59cdcde56a
    Add additional helper functions (#2) Matas 2022-10-20 11:27:52 +0300
  • e3c80304ed
    Rename to xdecimal in README (#3) Matas 2022-10-18 16:37:52 +0300
  • 9edb96a861
    Rename module to xdecimal (#1) Matas 2022-10-17 12:32:00 +0300
  • 93d8f38630 rename to xdecimal Matas Ramašauskas 2022-10-17 09:44:44 +0300
  • 6e54f647f0 Newline in end file vasilbekk 2022-10-01 14:20:16 +0300
  • d23c457004 Added unittests vasilbekk 2022-10-01 14:02:56 +0300
  • ba54fe1418 Added varible StringTrimTrailingZeros and comment for it vasilbekk 2022-10-01 13:47:11 +0300
  • 3161ff96b0
    Merge pull request #2 from gametimesf/dependabot-update Andy Janata 2022-09-26 15:49:00 -0700
  • b47856fa3c go so old Andy Janata 2022-09-23 14:41:33 -0700
  • d841418b90 update dependabot config Andy Janata 2022-09-23 13:56:24 -0700
  • f3eac4fb65 Fix numerator typo david 2022-06-21 21:09:28 +0300
  • 93a3cd9867 Add NewFromBigRat function david 2022-06-21 20:47:50 +0300
  • 4c856284ae
    Merge 27a017a55b into f55dd56454 martskins 2022-04-29 12:09:18 +0900
  • 89e74deb20 fix roundCeil,roundFloor,roundUp and roundDown examples 蒋毅俊 2022-04-27 15:35:22 +0800
  • f55dd56454
    Migrate to Github Actions (#245) Mateusz Woś 2022-04-18 23:54:26 +0200
  • f967b056a0 Merge branch 'master' into github-actions Mateusz Woś 2022-04-18 23:47:44 +0200
  • dfc8438f2b Remove Travis config, update readme Mateusz Woś 2022-04-18 23:45:27 +0200
  • c31da0254a
    Add Format() Jim McDonald 2022-04-11 17:45:30 +0100
  • bc752b01f3 Allocate new(big.Int) in Copy method to deeply clone it Vadim Kulagin 2022-03-26 16:58:11 +0300
  • 49883997d8 extend readme to highlight special cases around parsing and printing when using trailing zeros Julius Foitzik 2022-03-11 11:51:11 +0100
  • 5d3a9828f2
    Add GoString method for Decimal and NullDecimal (#270) Hassan Aminfar 2022-02-26 18:08:15 +0330
  • d15f2e7a3a flip signs redux Chris Belsole 2021-12-13 10:29:21 -0500
  • b9db158d3d flip signs Chris Belsole 2021-12-13 10:26:35 -0500
  • 6e8c4f56de Optimize the MarshalMsgand allocate the memory only once. 13981712066 2021-12-06 11:35:43 +0800
  • c7eaaded9c fix UnmarshalMsg return value. Returns the origanal data if the error occurs. 13981712066 2021-12-06 09:29:46 +0800
  • 5f79fa610c Change MsgPack MarshalMsg and UnmarshalMsg function's return value to unnamed. 13981712066 2021-12-06 09:22:32 +0800
  • 4526b4a8bd Add Test Case for MsgPack Marshal and Unmarshal 13981712066 2021-12-06 09:11:14 +0800
  • 879e52d70a Add MsgPack Marshal and Unmarshal Test Case 13981712066 2021-12-06 09:09:53 +0800
  • c5ee224d04 removed min() function for RescalePair() Chris Belsole 2021-11-28 10:29:50 -0500
  • 7ec7eb63a5
    Merge 39639f86d8 into fa3b22f4d4 Ryoya Sekino 2021-11-26 04:58:04 +0000
  • 39639f86d8
    README: Fix URLs for the official Go pages Ryoya Sekino 2021-11-26 13:50:41 +0900
  • 6ed1468fb5 Add MsgPack Marshal and Unmarshal function Mote: Marshal max digits is 30. it decimal.IntPart large than 30,it will be lose extra digits. 13981712066 2021-11-23 16:40:57 +0800
  • 86c2d2acf2 Merge branch 'master' of https://github.com/piyongcai/decimal 13981712066 2021-11-23 16:18:32 +0800
  • 519f778aec add MsgPack Marshal And Unmarshal function 13981712066 2021-11-23 16:16:27 +0800
  • 2371d4b37d
    Merge branch 'shopspring:master' into master piyongcai 2021-11-23 16:10:50 +0800
  • cf5a75ac3d change control ahmet.asik 2021-11-11 14:36:04 +0100
  • dfe5ae1f0a change only marshaljson ahmet.asik 2021-11-11 14:33:17 +0100
  • ea9ed0258b test renamed ahmet.asik 2021-11-10 13:04:44 +0100
  • 1a0a73bb6b int precision added ahmet.asik 2021-11-10 13:03:51 +0100
  • c7a83b801c doc updated ahmet.asik 2021-11-10 12:12:27 +0100
  • c54e7006ee renamed ahmet.asik 2021-11-10 12:04:01 +0100
  • 6b128a6ed3 Trailing Zeros Config Added ahmet.asik 2021-11-10 10:48:10 +0100
  • 81b6afad9b method Ptr() sophistik 2021-10-25 23:53:06 +0300
  • fa3b22f4d4
    Fix incorrect calculation of decimal modulo (#258) Mateusz Woś 2021-10-21 11:22:23 +0200
  • 66bac44833 Fix bug with decimal modulo mwoss 2021-10-21 02:03:30 +0200
  • 13a9162af1 Reduced Comparisons & Cleanup of Cmp Funcs lmittmann 2021-10-20 14:22:50 +0200
  • b30ea36a4c Doc Fix: Added "Deprecated: " Prefix to Deprecated Funcs lmittmann 2021-10-20 14:12:29 +0200
  • 683f5e1a7e
    Release version 1.3.1 (#255) v1.3.1 Mateusz Woś 2021-10-20 13:17:51 +0200
  • fdba91507b Release version 1.3.0 mwoss 2021-10-20 13:13:55 +0200
  • bc96f543c2
    Reduce memory allocation in case of initialization from big.Int (#252) lmittmann 2021-10-20 13:11:07 +0200
  • cd57bf11a4
    Fix binary marshalling of decimal zero value (#253) Gaylor Bosson 2021-10-20 12:49:41 +0200
  • 9e19cfc3ff
    Adapt the error message of BinaryUnmarshal Gaylor Bosson 2021-10-20 11:12:15 +0200
  • 75f3d7445e
    Fix binary marshalling of zero value Gaylor Bosson 2021-10-19 11:34:50 +0200