Merge pull request #76 from Pentacene/master

calculator 1.01 计算结果默认四位小数点
This commit is contained in:
Pentacene 2020-11-26 02:39:23 +08:00 committed by GitHub
commit f4f2d7bd82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ async def cal(context):
return
await context.edit(f"{command}" )
cmd = f'echo {command} | bc'
cmd = f'echo "scale=4;{command}" | bc'
result = await execute(cmd)
if result:

View File

@ -342,7 +342,7 @@
},
{
"name": "calculator",
"version": "1.0",
"version": "1.01",
"section": "chat",
"maintainer": "Pentacene",
"size": "1.0 kb",