ASCII + Numpad Combination for Power 10

I try to complete the task, but when I write my answer (in Notepad - a simple text file), I can’t understand for life how to make Power 10 appear. I know that if I delay ALT + 0178 "²", then how do I get 10 or even 3 or 30 or 40 ?

I tried to look on the Internet, but I only see codes for ² (and other unrelated ones). I tried using the Symbol Map program on Windows, but I could not find anything there except ².

And to connect this programming, yes, I am writing an application for the Windows Store that will have to display these characters, but I don’t know how to do it, because I don’t even know how to “type” them.

And no, this is not homework. :)

+4
source share
5 answers

Make the inscription ten the same way you usually type it: with one and 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 are writing code, the best way to refer to them in code is with the correct evacuation 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"
+13
source

I do not believe that there is a Unicode character for power 10. Notepad allows you to enter text, and the Alt + NumPad keys give you a way to enter a Unicode character. But as far as I know, the character you are looking for does not exist.

+3
source

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

Consider using Word (or any word processor or Mathematica that makes it easy to enter formulas and “mathematical notation”, and you can do it!) For things like Notepad that aren't really up to the task. Each word processor that I used offers a superscript (exponential) character style, and some (including Word) offer a "formula editor".

+2
source

Have you tried to press "^" this character every time you want the number to be displayed as power?

+1
source

Here is the add-in generator for copy / paste. I have varying degrees of success for 0 and numbers above 4, depending on what I insert. This is due to the character encoding of any instrument that you are inserting into. Tommy and David discuss this in the comments above.

https://lingojam.com/SuperscriptGenerator

The creator also created an index generator: https://lingojam.com/SubscriptGenerator

0
source

All Articles