Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASCII + Numpad combination for power 10

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 "²".

like image 533
Tommy Avatar asked Feb 26 '13 20:02

Tommy


2 Answers

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"
like image 116
David Yaw Avatar answered Oct 04 '22 04:10

David Yaw


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.

like image 30
Katie Kilian Avatar answered Oct 04 '22 04:10

Katie Kilian