About 53 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. integer - What exactly is a float? - Stack Overflow

    May 9, 2012 · This is the reason why we call them "floating point numbers" - we allow the decimal point to "float" depending on how big the number that we want to write is. Let's give an example in decimal …

  3. Should I use double or float? - Stack Overflow

    Jul 2, 2009 · 1 The main difference between float and double is precision. Wikipedia has more info about Single precision (float) and Double precision.

  4. 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 = …

  5. 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...

  6. python - How to resolve `np.float_` was removed in the NumPy 2.0 ...

    Apr 18, 2024 · I was getting similar errors from fb Prophet library, and adding np.float_ = np.float64 fixed the related issues for me without having to downgrade the numpy package; thanks.

  7. O que é o float em Python? - Stack Overflow em Português

    Jul 14, 2019 · O tipo float é associado ao valor de um objeto armazenado na memória e tem um formato interno específico que é capaz de representar um valor fracionado. Note que em Python as variáveis …

  8. 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?

  9. .net - Converting string to float in C# - Stack Overflow

    Jun 26, 2012 · 4 The precision of float is 7 digits. If you want to keep the whole lot, you need to use the double type that keeps 15-16 digits. Regarding formatting, look at a post about formatting doubles. …

  10. python - Change column type in pandas - Stack Overflow

    1. to_numeric() The best way to convert one or more columns of a DataFrame to numeric values is to use pandas.to_numeric(). This function will try to change non-numeric objects (such as strings) into …