- 四則運算和括號→+-*/()
- 指數運算和階層→^!
- 符號優先度如下:
優先度 | 運算子 | 相同層級的運算順序 |
---|---|---|
1 | () | |
2 | ! | 左至右 |
3 | ^ | 右至左 |
4 | +-(代表正負) | 右至左 |
5 | */ | 左至右 |
6 | +-(代表加減) | 左至右 |
- 整數變數會將小數點後的數字全部捨去,若要宣告成小數請加上小數點。(EX:1.0+2)
- 支援小數運算,當運算式中出現小數時,答案會以小數表示(到小數點後100位)
- 次方只能進行0.5的倍數,其餘將顯示錯誤。(EX:1^0.3)
- 輸入指令"Set Integer (變數名稱)=(運算式)"可以設置整數變數。
- 輸入指令"Set Decimal (變數名稱)=(運算式)"可以設置小數變數。
- 重新輸入相同名稱的變數將會覆蓋其值。
- 輸入指令"(變數名稱)=(運算式)"會重新覆值。
- 小數進行過大的次方運算時,程式可能當機
- 可能原因是約分的部分沒做好,效率太慢。
- 某些情況下的小數精度不正確
- 原因不明
- 變數賦值可能錯誤
- 原因不明
- 無法判斷次方是否為0.5的倍數,小數點後的將直接被當作0.5(開根號)進行運算。
- 沒有做相關處理
- 沒有實作API中的項目,請勿使用。
- 時間因素,程式碼十分紊亂,註解也沒有打得很詳細,請見諒。
- 檔案中的測資部分部分錯誤,應該已經附註在裡面。如果對此有疑問,請自行google正確答案。
- API的部分為錯誤是正常的。
- 專案協力人員:[name=linforgg]
[name=Zero871015][time=Fri, Jun 1, 2018 11:25 AM]