You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ More info can be found at <http://speleotrove.com/decimal/>.
5
5
6
6
## Features
7
7
8
-
-Decimal64, partial implementation of the ieee-754R standard
8
+
-Decimal, partial implementation of the ieee-754R standard
9
9
- Rounding modes: half up, half even, down (towards zero)
10
10
- Up to 3 times faster than arbitrary precision decimal libraries in Go
11
11
@@ -63,7 +63,7 @@ For maximum control, use `fmt.Printf` &co or invoke the `fmt.Formatter` interfac
63
63
64
64
tl;dr: Use the `decimal_debug` compiler tag during debugging to greatly ease runtime inspection of `Decimal` values.
65
65
66
-
Debugging with the `decimal` package can be challenging because a `Decimal` number is encoded in a `uint64` and the values it holds are inscrutable even to the trained eye.
66
+
Debugging with the `d64` package can be challenging because a decimal number is encoded in a `uint64` and the values it holds are inscrutable even to the trained eye.
67
67
For example, the number one `One` is represented internally as the number `3450757314565799936` (`2fe38d7ea4c68000` in hexadecimal).
68
68
69
69
To ease debugging, `Decimal` holds an optional `debugInfo` structure that contains a string representation and unpacked components of the `uint64` representation for every `Decimal` value.
@@ -74,7 +74,7 @@ The size and runtime cost of this feature is zero when the compiler tag is not p
0 commit comments