• Post Reply Bookmark Topic Watch Topic
  • New Topic

Square root character  RSS feed

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The square root character is defined as (char)251, but this all seems to
change when instantiating a Button with the title as a square root symbol, eg



When displaying the button, a different character is displayed?
Does anyone know whats happening, and does anyone know how to display the square root symbol??
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String SQR = "\u221A";
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!