0
How to display "-¹" at screen
The unit of velocity, ms-¹, "-¹" is replaced by some ASCII code. How can I really display "-¹" at the screen ? https://code.sololearn.com/cg36Pdz3AC6e/?ref=app
3 Antworten
+ 3
search for ASCII table and google and for displaying the specific character use :
char(num);
where num is a integer that specifies the ASCII value of the character .
or you can simply get the ASCII table here :
https://code.sololearn.com/cS1H39xtdppA/?ref=app
- 1
// In html
<p>ms<sup>-1</sup></p>
// prints ms-¹