From 2238f1c2c1279a83af4aae7f6eaec44d667f0c98 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Thu, 25 May 2023 19:17:11 -0700 Subject: [PATCH] ICU-20297 Improve discoverability of currency formatting --- icu4c/source/i18n/unicode/numberformatter.h | 3 +++ .../classes/core/src/com/ibm/icu/number/NumberFormatter.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/icu4c/source/i18n/unicode/numberformatter.h b/icu4c/source/i18n/unicode/numberformatter.h index caf98e3dfa6..56beb3692b9 100644 --- a/icu4c/source/i18n/unicode/numberformatter.h +++ b/icu4c/source/i18n/unicode/numberformatter.h @@ -80,6 +80,9 @@ * This API is based on the fluent design pattern popularized by libraries such as Google's Guava. For * extensive details on the design of this API, read the design doc. * + *

+ * Note: To format monetary/currency values, specify the currency in the `.unit()` function. + * * @author Shane Carr */ diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java index 5c4583dde4b..ce7d0fecddf 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java @@ -61,6 +61,9 @@ import com.ibm.icu.util.ULocale; * Guava. For extensive details on the design of this API, read the * design doc. * + *

+ * Note: To format monetary/currency values, specify the currency in the `.unit()` function. + * * @author Shane Carr * @stable ICU 60 */