G
G
GustavoCox2017-03-28 22:19:14
Java
GustavoCox, 2017-03-28 22:19:14

How to output in superscript (power), example 2²?

You don't need to count anything, just a conclusion. I already tried to display such codes
"U+00B2", "²", "²". It does not work, it displays the same characters.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Alexandrov, 2017-03-28
@GustavoCox

First make sure you have a UTF-8 encoded source file, then feel free to use any Unicode character like \u2082.

"U+00B2", "²","²"
wrong choices =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question