Update builtins.h

This commit is contained in:
blueloveTH 2022-11-13 21:09:56 +08:00
parent 15a9ec0689
commit 2192941bc8

View File

@ -146,6 +146,12 @@ class dict:
a.append(k.__json__()+': '+v.__json__())
return '{'+ ', '.join(a) + '}'
def round(x):
if x >= 0:
return int(x + 0.5)
else:
return int(x - 0.5)
def max(a, b):
if a > b:
return a