2012-04-18 33 views

回答

3

根據DDMathParser wiki,內置常量,如pi are functions that take no arguments

該wiki還介紹瞭如何define your own functions

+0

+1,這是完全正確的。如果你也想用一個特殊的符號常量(如'π'爲'PI()'),那麼你就必須到該符號添加到[單行字符函數集(https://開頭github上。 COM/davedelong/DDMathParser /斑點/主/ DDMathParser/DDMathStringTokenizer.m#L76)。默認情況下,函數名只能是字母數字。 – 2012-04-18 22:57:15

相關問題