mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 11:26:47 +00:00
calculator默认四位小数点
This commit is contained in:
parent
ed663121f6
commit
f43ff0c7e3
@ -15,7 +15,7 @@ async def cal(context):
|
|||||||
return
|
return
|
||||||
|
|
||||||
await context.edit(f"{command}" )
|
await context.edit(f"{command}" )
|
||||||
cmd = f'echo {command} | bc'
|
cmd = f'echo "scale=4;{command}" | bc'
|
||||||
result = await execute(cmd)
|
result = await execute(cmd)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
|
Loading…
Reference in New Issue
Block a user