Python math module provides built in methods to perform mathematical operations.
max() and min() function allow us to get maximum an minimum number.
OUTPUT:
pow() function allow us to get the power of given number.
OUTPUT:
Pow = 64
sqrt() function allows us to get the square root of given number.
OUTPUT:
Pow = 8.0
trunc() function will extract integer part from the number.
OUTPUT:
floor() function will return smallest nearest round off integer number.
OUTPUT:
ceil() function is just opposite of floor() function. ceil() will return nearest round off integer number.
OUTPUT:
isnan() function will return True if current value is not a number.
OUTPUT:
Specialist Master (Architect) with a passion for cutting-edge technologies like AEM (Adobe Experience Manager) and a proven track record of delivering high-quality software solutions.
📝 Blogs
javadoubts.com © All rights reserved