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.lua.ac.cn/wiki/SciteScripts for more scripts.

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


RecentChanges · preferences
编辑 · 历史
最后编辑于 2015 年 10 月 8 日下午 1:33 GMT (diff)