This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Displaying Fraction with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Displaying Fraction with Java" Watch "Displaying Fraction with Java" New topic
Author

Displaying Fraction with Java

Apple Khoa
Ranch Hand

Joined: Jul 27, 2011
Posts: 37
Dear all,

Is it possible to display fractions as how human will normally write [e.g. superscript(3) / subscript(4)] with Java, rather than displaying it as "3/4"?

I am aware that Latex can display fractions, but from what I can understand, it cannot be embed into Java code to give a .java file. Kindly correct me if I am wrong.

All advices will be greatly appreciated.

Thanks in advance.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19739
    
  10

That all depends on what you mean by "display". Display where? In what context?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying Fraction with Java
 
It's not a secret anymore!