1 Star 1 Fork 0

辰落火辉Haceau / Haceau-Calculator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Haceau-Calculator

Language .Net Core

Gitee Github

简介

该项目为使用C#编写的计算器。当前版本为v1.4.1。支持小括号、加减乘除、去除小数的除、取余、幂运算、正负数运算和函数。开源协议为MIT。保持更新中。

Calculator:计算器类,实现计算功能。

Tools:工具类,一些与计算器无关的功能在这里实现。

  • Calculator以及Tools类可以直接拿走进行开发(前提:遵守MIT许可证)。

使用

  • 加:1 + 2 = 3
  • 正:+1 + (+2) = 3
  • 减:1 - 2 = -1
  • 负:-1 - (-2) = 1
  • 乘:1 * 2 = 2
  • 幂:1 ^ 2 或 1 ** 2 = 2
  • 除:1 / 2 = 0.5
  • 取余:1 % 2 = 1
  • 除(去除小数):1 // 2 = 0
  • 函数:函数名(值)
  • 函数列表:abs、acos、acosh、asin、atan、atanh、cbrt、ceiling、cos、cosh、exp、floor、ilogb、log、log10、log2、round、sign、sin、sinh、sqrt、tan、tanh、truncate

待办清单

完成版本 内容
1.1.0 支持正/负数运算
1.2.0 支持取余运算
1.3.0 支持幂运算和去小数位的除运算
取消,使用小括号嵌套代替 支持中括号
1.4.0 支持函数
1.5.0 支持大数运算
- 长期维护
MIT License Copyright (c) 2020 辰落火辉Haceau Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

功能较为完善的控制台计算器。 展开 收起
C#
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/haceau/Haceau-Calculator.git
git@gitee.com:haceau/Haceau-Calculator.git
haceau
Haceau-Calculator
Haceau-Calculator
master

搜索帮助