Search code examples
javaandroidformattinginfinity

How to make an infinity sign on Android?


I know there's this question, but '\u221e' doesn't work for me. Also this is Android-specific. Surely there must be a way to show an infinity sign!


Solution

  • Never mind, found it myself:

    DecimalFormatSymbols.getInstance().getInfinity()
    

    Note that it may not work with some custom fonts.