Created
July 8, 2011 20:44
-
-
Save jediwhale/1072761 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PiSymbolType extends SymbolType implements Translation { | |
public PiSymbolType () { | |
super("Pi"); | |
wikiMatcher(new Matcher().string("!pi")); | |
htmlTranslation(this); | |
} | |
public String toTarget(Translator translator, Symbol symbol) { | |
return Double.toString(Math.PI); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment