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 Answers
+ 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-Ā¹