How do I use MessageFormat
to format a number in hexadecimal? I have an existing MessageFormat
pattern, and the customer wants to change it from a decimal number to a three-digit hex number. Is this possible using MessageFormat
? Or do I have to switch to a more powerful formatter? Or some other trick?
Formatting a number as hexadecimal using MessageFormat in Java
Asked Answered
© 2022 - 2024 — McMap. All rights reserved.
MessageFormat
does not support it in the pattern level. – OnceoverMessageFormat
. – Onceover