mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 00:35:36 +00:00
calculator默认四位小数点
This commit is contained in:
parent
ed663121f6
commit
f43ff0c7e3
@ -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