About 8,480,000 results
Open links in new tab
  1. What is the difference between float and double? - Stack Overflow

    Dec 31, 2021 · I've read about the difference between double precision and single precision. However, in most cases, float and double seem to be interchangeable, i.e. using one or the other does not …

  2. Ranges of floating point datatype in C? - Stack Overflow

    Apr 11, 2012 · The values for the float data type come from having 32 bits in total to represent the number which are allocated like this: 1 bit: sign bit 8 bits: exponent p 23 bits: mantissa The exponent …

  3. java - What is the difference between the float and integer data type ...

    Jan 26, 2011 · float stores floating-point values, that is, values that have potential decimal places int only stores integral values, that is, whole numbers So while both are 32 bits wide, their use (and …

  4. Difference between decimal, float and double in .NET?

    Mar 6, 2009 · What is the difference between decimal, float and double in .NET? When would someone use one of these?

  5. .net - C# float.Parse String - Stack Overflow

    Dec 31, 2014 · C# float.Parse String Asked 10 years, 11 months ago Modified 1 year, 8 months ago Viewed 83k times

  6. How do I parse a string to a float or int? - Stack Overflow

    Dec 19, 2008 · For the reverse, see Convert integer to string in Python and Converting a float to a string without rounding it. Please instead use How can I read inputs as numbers? to close duplicate …

  7. What is the point of float('inf') in Python? - Stack Overflow

    Dec 14, 2015 · Just wondering over here, what is the point of having a variable store an infinite value in a program? Is there any actual use and is there any case where it would be preferable to use foo = …

  8. floating point - C: printf a float value - Stack Overflow

    I want to print a float value which has 2 integer digits and 6 decimal digits after the comma. If I just use printf("%f", myFloat) I'm getting a truncated value. I don't know if this always happen...

  9. python - How to define new variable as float? - Stack Overflow

    Jan 3, 2016 · I'm trying to make the following function output the correct answer, but the 'rightSide' variable is being made as an integer, and doesn't have any decimals. def G(mass1, mass2, radius, …

  10. How can I solve error "module 'numpy' has no attribute 'float'" in ...

    In many cases you can simply replace the deprecated NumPy types by the equivalent Python built-in type, e.g., numpy.float becomes a "plain" Python float. For detailed guidelines on how to deal with …