go /
text /
4733c436bc26a745029bf43effa989a61eca7da2 internal/number: improve conformance
- Use patterns also for Inf
- Allow zero precision (and thus an empty result)
CLDR patterns don’t allow specifying this, but
fmt pattrens do. We allow it by means of extension.
- Support AlwaysSign flag in case negative patterns
aren’t specified. This allows passing fmt flag
behavior for most default Decimal and Scientific
formats.
Change-Id: I22104a92e12da11465584eaab9ffd8320a1f469d
Reviewed-on: https://go-review.googlesource.com/46290
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2 files changed