ASCII + Numpad combination for power 10

24,072

Solution 1

Make a superscript ten the same way you type it normally: with a one and a zero.

  • Superscript 1: Alt 0185 or Alt +00B9: ¹
  • Superscript 2: Alt 0178 or Alt +00B2: ²
  • Superscript 3: Alt 0179 or Alt +00B3: ³
  • Superscript 4: Alt +2074: ⁴
  • Superscript 5: Alt +2075: ⁵
  • Superscript 6: Alt +2076: ⁶
  • Superscript 7: Alt +2077: ⁷
  • Superscript 8: Alt +2078: ⁸
  • Superscript 9: Alt +2079: ⁹
  • Superscript 0: Alt +2070: ⁰

If you're writing code, the better way to refer to them in code is with the proper escape code. The syntax here is for C/C++/C#/Java, but other languages should have something similar.

  • Superscript 1: "\u00B9"
  • Superscript 2: "\u00B2"
  • Superscript 3: "\u00B3"
  • Superscript 4: "\u2074"
  • Superscript 5: "\u2075"
  • Superscript 6: "\u2076"
  • Superscript 7: "\u2077"
  • Superscript 8: "\u2078"
  • Superscript 9: "\u2079"
  • Superscript 0: "\u2070"

Solution 2

I do not believe there is a Unicode character for the power of 10. Notepad allows you to enter text, and the Alt+NumPad keystrokes give you a way to enter a Unicode character. But to the best of my knowledge, the character you are looking for does not exist.

Solution 3

The 2 exponent character is an extended ASCII character (253 decimal); there is no equivalent for 10. See the ASCII table for a list of what's available in typical character sets.

Consider using Word (or any word processor, or Mathematica which makes entering formulas and "math notation" very easy, and you can execute it!) for this type of thing as Notepad isn't really up to the challenge. Every word processor I've used offers superscript (exponent) character styling, and some (including Word) offer a "formula editor."

Solution 4

Did you try pressing "^" this symbol every time you want the number to appear as a power?

Share:
24,072
Tommy
Author by

Tommy

Updated on January 21, 2022

Comments

  • Tommy
    Tommy over 2 years

    I am writing an app and I need to use power numbers in strings. But I cannot for the life of me figure out how to type power 10 characters. I know that if I hold down ALT + 0178, the character "²" will appear, but how do I type things like 3 or even 40?

    I've tried looking online, but only see codes for "²" (and other, non-related ones). I've tried using the Character Map program in Windows but I couldn't find anything in there other than "²".

  • Tommy
    Tommy about 11 years
    You mean, I can just type: 2^10?
  • Tommy
    Tommy about 11 years
    Superscript 4 through 0 do not work for me. They output: instead.
  • David Yaw
    David Yaw about 11 years
    Make sure you're pressing the "+" key on the numeric keypad, and then the number. You may also have to adjust a registry setting, see here: fileformat.info/tip/microsoft/enter_unicode.htm
  • 3Dave
    3Dave about 11 years
    @dko - just a note: ^ in most C-style languages (including C#) is an XOR, not an exponent operation (though I don't see that this affects text formatting at all)