Quick actions

cmd+k|ctrl+k

Navigation

Languages

Math Functions

Snippet info

Language

Python

Visibility

public

Author

yogilight

Created

2025-09-24T10:56:22.830473Z

Updated

2025-09-24T10:56:22.830473Z

#Math Functions
round #round down for number less than 5 and round up for number egual to or greater than 5
abs #absolute value means no negative numbers

#round
print(round(3.1)) #Answer: 3
print(round(3.5)) #Answer: 4

#abs
print(abs(-20)) #Answer: 20

INFO