Scite 計算器

lua-users home
wiki

SciTECalculator 是一個執行於 SciTE 內的計算器應用程式。

網站:http://sl-calculator.luaforge.net/

說明:SciTECalculator 是一個獨立的 SciTE「應用程式」,當您執行腳本時,它會在新緩衝視窗中開啟。這個計算器看起來就像是文字模式中繪製出來的計算器,並透過按鍵和滑鼠雙擊來操作。您可以像使用一般的計算器一樣來使用這個計算器。

基本的計算器腳本功能完整;所有按鈕和對應按鍵都可運作。

由於它是 Lua 腳本,因此可以輕鬆擴充以符合個人的需求。SciTECalculator 與 SciteExtMan 相容。對於使用比例字型的使用者,您可以使用 SciteMakeMonospace,避免總是要切換到等寬字型模式的麻煩。

計算器畫面

+------------------------------------------------+
| SciTE Basic Calculator                ver. 0.5 |
+------------------------------------------------+
|/-\/---\/--------------------------------------\|
|| ||Dec||                                    0 ||
|\-/\---/\--------------------------------------/|
|------------------------------------------------|
| +-----+-----+-----+-----+  +----+-----+------+ |
| | Hex | Dec | Oct | Bin |  | <- |  C  |  AC  | |
| +-----+-----+-----+-----+  +----+-----+------+ |
| +----+ +-----+-----+-----+ +-----+-----+-----+ |
| | MC | |  7  |  8  |  9  | |  /  | Mod | And | |
| +----+ +-----+-----+-----+ +-----+-----+-----+ |
| | MR | |  4  |  5  |  6  | |  *  | Or  | Xor | |
| +----+ +-----+-----+-----+ +-----+-----+-----+ |
| | MS | |  1  |  2  |  3  | |  -  | Lsh | Not | |
| +----+ +-----+-----+-----+ +-----+-----+-----+ |
| | M+ | |  0  | +/- |  .  | |  +  |  =  | Int | |
| +----+ +-----+-----+-----+ +-----+-----+-----+ |
| +----+ +-----+-----+-----+ +-----+-----+-----+ |
| | PI | |  A  |  B  |  C  | |  D  |  E  |  F  | |
| +----+ +-----+-----+-----+ +-----+-----+-----+ |
+------------------------------------------------+

+-----------------------------------------------------------+
| SciTE Basic Calculator by <khman@users.sf.net> 20060904   |
| Use by pressing keys as you would in a normal calculator, |
| or double-click the "buttons". Press 'H' for help.        |
+-----------------------------------------------------------+

說明畫面

               Help for SciTE Basic Calculator
               -------------------------------

The following keys are recognized by the calculator:

    [Space]      All clear (AC)
    X            Cancel number (C)
    Z, \         Delete last character (<-)
    [Enter], =   Evaluate (=)
    1-9, A-F     Digits, hexadecimal digits
    .            Decimal point
    /, *, -, +   Basic operations
    Q, R, S, T   Memory operations (MC, MR, MS, M+)
    I            Truncate fractional portion (Int)
    H            Toggle help screen
    [, ]         Switch radix

This calculator is not meant for heavy-duty work. Non-decimal
bases and some operations can only work with 32 bit signed
integers. There is no support for scientific notation entry.

This script has been declared by the author to be public domain
code. Author information can be found in the Lua sources.
See https://lua-users.dev.org.tw/wiki/SciteScripts for more scripts.

Press H again to return to the calculator display...


最近的變更 · 偏好設定
編輯 · 歷史
最後於 2015 年 10 月 8 日下午 7:33 GMT 編輯 (差異)