Skip to content

Instantly share code, notes, and snippets.

@jediwhale
Created July 8, 2011 20:44
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