How to insert the square root symbol

tsri_badr_esgi Posted messages 530 Registration date   Status Member Last intervention   -  
qbasic45 Posted messages 60 Status Member -
Hello everyone,

I am currently making a calculator and I want to insert the square root symbol as text for a button that will calculate the square root, but I don't know how to do that. I know that using an image is possible, but can we do it without an image?

Thank you very much.

Configuration: Windows 7 / Chrome 24.0.1312.52

2 answers

  1. KX Posted messages 19031 Status Moderator 3 020
     
    I don't know C# but I think you can use Unicode like in Java.
    char radic = '\u221a';
    HTML special characters:    √    →    √    √
    --
    Trust does not exclude control.
    2
    1. tsri_badr_esgi Posted messages 530 Registration date   Status Member Last intervention   9
       
      Thank you for the reply, but unfortunately without success.
      0
    2. franck
       
      The ASCII code indicates for the char variable 251, with good research
      Microsoft provides good answers, good luck since qbasic!

      http://msdn.microsoft.com/en-us/library/9hxt0028%28v=vs.80%29.aspx
      - this is just a research hint, not a certainty, thank you!
      0
    3. qbasic45 Posted messages 60 Status Member 3
       
      Hello
      in QBasic for the square root
      cls : print " the square root of " ;
      input a
      print " the square root is " ; sqr(a)
      0