java - Is there a pretty print API for a mathematical String somewhere? -


Is there a pretty print API for a mathematical string? For example:

"10000000 - 234564" becomes

"10,000,000 to minus 234,564"

I can make my own but someone can give me some hints how

Can:

  number format f = number formatted.jistence (location); If (F is the decimal of the example) {decimalf df = (decimalf) f; Df.setGroupingUsed (true); Df.setGroupingSize (3); Println (df.format (myNumber)); }  

Comments