We help IT Professionals succeed at work.

How to write power or index

for eg. a power 2

how to put the 2 on a so it looks like a square ?

Thanks
Comment
Watch Question

Author

Commented:
can i write this by simply typing in the comment box
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013

Commented:
Where are you trying to write it?
There are a couple ANSI characters for 2 and 3 shown here ² ³
You can print them using (char)178 and (char)179

Other than those, you need formatting or perhaps some unicode support.
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013

Commented:
http://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts
There are the unicode ones. EE doesn't support much unicode in it's comments.
5 <--Looks like a superscript 5 where I'm typing.
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013

Commented:
For power, if you don't have Unicode or formatting, most people understand x^5 to mean x to the power 5.

Author

Commented:
How did u did that

here ² ³

Author

Commented:
test (char)178 and (char)179

Author

Commented:
it dont do any thing
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015
Commented:
do you mean like this²  
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013
Commented:
The (char)178 is just for C code (since that was a zone).
I just copies it and pasted it from Character Map. You can also hold down Alt and type 0178
(usually written Alt+0178)

Author

Commented:
i press ctrl 178 also alt 178 but it dont show any thing
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013

Commented:
Alt 0178
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013

Commented:
Oh, and it needs to be the numbers on the keypad, not above the letters.

Author

Commented:
i tried it in the comment box also in the notepad but it dont print any thing

Alt+0178

Alt+178

but it dont do any thing.

Author

Commented:
i think i just copy it from the link you provide, but it looks very tiny

tt6

Author

Commented:
oo. the one which i just copied it it dont show in my comment
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013

Commented:
When it says Alt+0178 it means to hold the alt key down while pressing 0178 on the keypad (over to the right of the letter part of the keyboard). Don't type the + sign.

The only ones that work here are the 2 and the 3. The others are Unicode which EE does not support.

Author

Commented:
Thanks Tommy. I am not using the plus sign. I have old HP laptop with windows XP may be the alt key has some problem.

Author

Commented:
ozo did the same thing

this²

Explore More ContentExplore courses, solutions, and other research materials related to this topic.