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

24th Nov 2017, 4:16 PM
Weng Yau
Weng Yau - avatar
3 ответов
+ 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
24th Nov 2017, 4:30 PM
RZK 022
RZK 022 - avatar
- 1
// In html <p>ms<sup>-1</sup></p> // prints ms-¹
24th Nov 2017, 4:37 PM
#RahulVerma
#RahulVerma - avatar