From 9b2db3cc4dc49f270b12a726148224827b244d83 Mon Sep 17 00:00:00 2001 From: Denis Bernard Date: Fri, 29 May 2020 16:58:36 +0200 Subject: [PATCH] Mention context package in README --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e6f87fb..65b3cef 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,12 @@ to handle NaNs gracefully can use Go's built-in panic/recover machanism to handle these efficiently: NaNs cause a panic with an ErrNaN which can be tested to distinguish NaNs from other causes of panic. -On the other hand, Contexts (implemented in the [context](https://pkg.go.dev/github.com/db47h/decimal/context?tab=doc) sub-package) provide a -form of quiet-NaNs whereby any NaN generated by an operation will make the -context enter into an error state. Further operations with the context will be -no-ops until (*Context).Err is called to check for errors. +On the other hand, Contexts (implemented in the +[context](https://pkg.go.dev/github.com/db47h/decimal/context?tab=doc) +sub-package) provide a form of quiet-NaNs whereby any NaN generated by an +operation will make the context enter into an error state. Further operations +with the context will be no-ops until (*Context).Err is called to check for +errors. Mantissae are always normalized, as a result, Decimals have a single possible representation: