在文本编辑区域直接打字,例如 (1+2)*3=,然后回车或者按?号,直接计算出结果。
如果无反应,首先检查版本是否最新,然后检查菜单“设置”“计算选定的表达式”是否被选中。
实例:
pi*1.4^2=6.157522
0b0101+0b1010=15
计算器支持的全套语法见
https://github.com/codeplea/tinyexpr
Functions supported
TinyExpr supports addition (+), subtraction/negation (-), multiplication (*), division (/), exponentiation (^) and modulus (%) with the normal operator precedence (the one exception being that exponentiation is evaluated left-to-right, but this can be changed - see below).
The following C math functions are also supported:
abs (calls to fabs), acos, asin, atan, atan2, ceil, cos, cosh, exp, floor, ln (calls to log), log (calls to log10 by default, see below), log10, pow, sin, sinh, sqrt, tan, tanh
The following functions are also built-in and provided by TinyExpr:
fac (factorials e.g. fac 5 == 120)
ncr (combinations e.g. ncr(6,2) == 15)
npr (permutations e.g. npr(6,2) == 30)
Also, the following constants are available:
pi, e
【 在 haiyang 的大作中提到: 】
: 计算器功能在哪个菜单?居然找不到。。。
:
--
修改:poocp FROM 222.212.186.*
FROM 222.212.186.*