Select to view content in your preferred language

Exponents in Label Expression

3950
6
Jump to solution
11-15-2017 02:12 PM
AngelaGruber1
Emerging Contributor

Is there a way to add exponents to a label expression?  In other words, add a superscript "2" to indicate "squared."

I am using ArcGIS 10.2 and am not very experienced with programming languages like VBS or Python.

Thanks for any help.

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

I guess yo could simply use the character "²" (in my case Alt-253)

View solution in original post

6 Replies
XanderBakker
Esri Esteemed Contributor

I guess yo could simply use the character "²" (in my case Alt-253)

AngelaGruber1
Emerging Contributor

Thanks Xander.  That works.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

An alternative way is to add the following tag to your expression including quotes (Parser: VBScript)

"<SUP>2</SUP>"

e.g.: If you want to write E=mc2

then write the following expression

"E=mc" & "<SUP>2</SUP>"



Think Location
AngelaGruber1
Emerging Contributor

Thank you, Jayanta.  Also very helpful.

0 Kudos
JosephCarter
Frequent Contributor

Hey, Angela. To add a little help .  . . for additional text formatting tags, in "ArcGIS Desktop Help", type: "formatting tags". I keep this chart printed and available at my desk. Good luck!

AngelaGruber1
Emerging Contributor

Great, thanks Joseph!

I looked it up and saved a copy.

0 Kudos