Math Operators and Math Functions

Run Settings
LanguagePython
Language Version
Run Command
# some peices of codes for math operators and math functions # a lot but simple :) print(8 ** 5) print(18 / 4) print(18 // 4) print(21 // 5 ) print(21 % 5) print("\n===========\n") print(round(4)) print(round(4.1)) print(round(4.2)) print(round(4.45)) print(round(4.5)) print("\n===========\n") print(round(4.5000002)) print(round(4.51)) print(round(4.75)) print(round(4.95)) print("\n===========\n") print(abs(-12)) print(abs(-8.025)) print("\n===========\n") from math import * print(pow(4 , 0.5)) print(sqrt(4)) print(type(pow(4 , 0.5))) print(type(sqrt(4))) print(pow(4 , 2)) print(type(pow(4 , 2))) # the type of square root & power are always 'float'
Editor Settings
Theme
Key bindings
Full width
Lines