Python | sympy.Float() method Last Updated : 14 Jul, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.Float() method, we can convert the integer values to floating point values and by using this method we can also set the values of precision. By default value of precision is 15. Syntax : sympy.Float() Return : Return the floating point number. Example #1 : In this example we can see that by using sympy.Float() method, we can convert the integer value to floating point values with precision. Python3 1=1 # import sympy from sympy import * # Use sympy.Float() method gfg = Float(56) print(gfg) Output : 56.0000000000000 Example #2 : Python3 1=1 # import sympy from sympy import * # Use sympy.Float() method gfg = Float(456, 6) print(gfg) Output : 456.000 Comment More infoAdvertise with us Next Article Python | sympy.Float() method J Jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.Integer() method With the help of sympy.Integer() method, we can convert the floating point to integer values and this method very efficient in term of memory if we want to save integer value. Syntax : sympy.Integer() Return : Return integer value. Example #1 : In this example we can see that by using sympy.Integer( 1 min read Python | sympy.sqrt() method With the help of sympy.sqrt() method, we can find the square root of any number by using sympy.sqrt() method. Syntax : sympy.sqrt(number) Return : Return square root of any number. Example #1 : In this example we can see that by using sympy.sqrt() method, we can get the square root of any number. Py 1 min read Python | sympy.sqrt() method With the help of sympy.sqrt() method, we can find the square root of any value in terms of values and also in terms of symbolically simplified mathematical expression. Syntax: sqrt(val) Parameters: val â It is the value on which square root operation is to be performed. Returns: Returns square root 1 min read Float type and its methods in python A float (floating-point number) is a data type used to represent real numbers with a fractional component. It is commonly used to store decimal values and perform mathematical calculations that require precision.Characteristics of Float TypeFloats support decimal and exponential notation.They occupy 5 min read Python | sympy.Rational() method With the help of sympy.Rational() method, we can find the rational form of any float value that is passed as parameter in sympy.Rational() method. Syntax : sympy.Rational(val) Return : Return Rational form of float value. Example #1 : In this example we can see that by using sympy.Rational() method, 1 min read Like