Why Nostr? What is Njump?
2023-02-09 01:21:44
in reply to

dave on Nostr: ...

math.ceil()是一个数学函数,它可以将一个数字舍入为上限整数。例如,math.ceil(2.5)将返回3.

示例代码:

x = 2.5
y = math.ceil(x)
print(y) -- 输出3
Author Public Key
npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4