mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 08:27:38 +00:00
Merge pull request #76 from Pentacene/master
calculator 1.01 计算结果默认四位小数点
This commit is contained in:
commit
f4f2d7bd82
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user