Documente Academic
Documente Profesional
Documente Cultură
StackOverflowisaquestionandanswersiteforprofessionalandenthusiastprogrammers.It's100%free,no
registrationrequired.
login
tour
c#ASCII+Numpadcombinationforpower10StackOverflow
2/27/2015
help
stackoverflowcareers
Takethe2minutetour
ASCII+Numpadcombinationforpower10
IamtryingtodoanassignmentbutwhenIwritemyanswer(inNotepadaplaintextfile),Icannotforthelifeofmefigureouthowtomake
thepower10appear.IknowthatifIholddownALT+0178""willappear,buthowdoIget10toappearoreven3,or30or40?
I'vetriedlookingonline,butonlyseecodesfor(andother,nonrelatedones).I'vetriedusingtheCharacterMapprograminWindowsbutI
couldn'tfindanythinginthereotherthan.
Andtomakethisprogrammingrelated,yes,IamwritinganappfortheWindowsStorewhichwillhavetodisplaythesecharacters,but
havenoideahowtosinceIdon'tevenknowhowto"type"them.
Andno,thisisnothomework.:)
c# math languageagnostic
askedFeb26'13at20:15
Tommy
158
18
4Answers
Makeasuperscripttenthesamewayyoutypeitnormally:withaoneandazero.
Superscript1:Alt0185orAlt+00B9:
Superscript2:Alt0178orAlt+00B2:
Superscript3:Alt0179orAlt+00B3:
Superscript4:Alt+2074:
Superscript5:Alt+2075:
Superscript6:Alt+2076:
Superscript7:Alt+2077:
Superscript8:Alt+2078:
Superscript9:Alt+2079:
Superscript0:Alt+2070:
Ifyou'rewritingcode,thebetterwaytorefertothemincodeiswiththeproperescapecode.The
syntaxhereisforC/C++/C#/Java,butotherlanguagesshouldhavesomethingsimilar.
Superscript1:"\u00B9"
Superscript2:"\u00B2"
Superscript3:"\u00B3"
Superscript4:"\u2074"
Superscript5:"\u2075"
http://stackoverflow.com/questions/15098415/asciinumpadcombinationforpower10
1/2
2/27/2015
c#ASCII+Numpadcombinationforpower10StackOverflow
Superscript6:"\u2076"
Superscript7:"\u2077"
Superscript8:"\u2078"
Superscript9:"\u2079"
Superscript0:"\u2070"
editedFeb26'13at21:11
answeredFeb26'13at20:40
DavidYaw
14.4k
22
53
Didyoufindthisquestioninteresting?Tryournewsletter
Signupforournewsletterandgetourtopnewquestions
deliveredtoyourinbox(seeanexample).
IdonotbelievethereisaUnicodecharacterforthepowerof10.Notepadallowsyoutoenter
text,andtheAlt+NumPadkeystrokesgiveyouawaytoenteraUnicodecharacter.Buttothe
bestofmyknowledge,thecharacteryouarelookingfordoesnotexist.
answeredFeb26'13at20:20
CharlieKilian
3,802
16
38
The2exponentcharacterisanextendedASCIIcharacter(253decimal)thereisnoequivalent
for10.SeetheASCIItableforalistofwhat'savailableintypicalcharactersets.
ConsiderusingWord(oranywordprocessor,orMathematicawhichmakesenteringformulas
and"mathnotation"veryeasy,andyoucanexecuteit!)forthistypeofthingasNotepadisn't
reallyuptothechallenge.EverywordprocessorI'veusedofferssuperscript(exponent)
characterstyling,andsome(includingWord)offera"formulaeditor."
answeredFeb26'13at20:24
DavidLively
16.7k
50
108
Didyoutrypressing"^"thissymboleverytimeyouwantthenumbertoappearasapower?
answeredFeb26'13at20:20
dko
11
http://stackoverflow.com/questions/15098415/asciinumpadcombinationforpower10
2/2