About 1,010,000 results
Open links in new tab
  1. Is it possible to convert a float to double? - Stack Overflow

    Sep 9, 2019 · Regardless of which you're using, the module packs from and unpacks to Python's native float type (which, remember, is binary64). In the case of d that's exact; in the case of f it …

  2. Type Conversion in Python - GeeksforGeeks

    Aug 23, 2025 · In implicit conversion, Python automatically converts one data type into another during expression evaluation. This usually happens when a smaller data type like int is …

  3. 5 Best Ways to Convert Integer to Double in Python - Finxter

    Feb 18, 2024 · Python provides a built-in function called float() which takes any number or string and converts it into a floating-point number, effectively a double in Python.

  4. How To Convert Data Types in Python 3? - GeeksforGeeks

    Jul 15, 2025 · Type Conversion is also known as typecasting, is an important feature in Python that allows developers to convert a variable of one type into another. In Python 3, type …

  5. Solved: convert float to double! - Esri Community

    Nov 14, 2012 · In order to use Topo2Raster function for a Digital Terrain Model I've rapidly and by mistake created a field with float values for the elevation. Is there a possibility to transform or …

  6. Double precision floating values in Python - AskPython

    Jan 27, 2024 · Luckily, Python offers some great options for working with high-precision decimal values. Python’s standard float type, based on double-precision IEEE 754 format, provides up …

  7. python - Converting a float to a double to an integer - Stack Overflow

    May 16, 2014 · I don't quite understand how to change the float the user prompted. I need to convert it first to double, multiply by 100 and then convert to an int but I'm having troubles with it.

  8. convert double to float in Python - Stack Overflow

    Nov 8, 2012 · In a Python program, I have these two values: My hypothesis is that v1 is a 64-bits floating point value, and v2 is v1 converted to a 32-bits floating point value. How can I verify …

  9. python - How to change float64 to double in numpy - Stack Overflow

    Dec 6, 2021 · The objective is to convert from float64 to double. However, using the astype (np.double) does not changed the array type. numpy.random.seed (0) arr=np.random.rand …

  10. Python Data Type Conversion: A Guide With Examples - DataCamp

    Feb 16, 2025 · Understand a variety of data type conversions in Python. Learn about primitive and non-primitive data structures with the help of code examples.