Anda di halaman 1dari 2

signup

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

Thankyouallforyouranswers.Theywereveryhelpful:) Tommy Feb26'13at20:30


Isthisaprogrammingquestion?oratypingquestion?DavidYawFeb26'13at20:44
It'smainlyatypingquestioningeneralbutit'spreventingmefromcontinuingwithmyapp.SounlessI
knowhowtowritetheselittlebuggersdown,Icannotcontinuewithmyapp.@DavidYawThankyoufor
youranswer. Tommy Feb26'13at20:57
1 Ifyou'reoutputtingthesecharactersfromtheanapplication,it'snotnecessarytoactuallytypethem.See
edittomyanswer.DavidYawFeb26'13at21:12

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

Superscript4through0donotworkforme.Theyoutput: instead. Tommy Feb


26'13at21:00
Makesureyou'repressingthe"+"keyonthenumerickeypad,andthenthenumber.Youmayalsohaveto
adjustaregistrysetting,seehere:fileformat.info/tip/microsoft/enter_unicode.htmDavidYawFeb26'13
at21:06

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

1 Youmean,Icanjusttype: 2^10 ? Tommy Feb26'13at20:22


@dkojustanote: ^ inmostCstylelanguages(includingC#)isanXOR,notanexponentoperation
(thoughIdon'tseethatthisaffectstextformattingatall)DavidLively Apr1'13at16:23

http://stackoverflow.com/questions/15098415/asciinumpadcombinationforpower10

2/2