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 …

  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 …

  3. 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 …

  4. Qual a forma correta de usar os tipos float, double e decimal?

    Jul 10, 2017 · float e double são mais rápidos, eficientes e econômicos do que os BigDecimal s do Java; não posso afirmar muito sobre o Decimal do C#, mas creio que para multiplicação …

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

  6. floating point - What range of numbers can be ... - Stack Overflow

    For a given IEEE-754 floating point number X, if 2^E <= abs(X) < 2^(E+1) then the distance from X to the next largest representable floating point number (epsilon) is: epsilon = 2^(E-52) % For …

  7. How to use % operator for float values in c - Stack Overflow

    How to use % operator for float values in c Asked 14 years, 1 month ago Modified 7 years, 11 months ago Viewed 73k times

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

  9. How do I round a number to 2 decimal places in C?

    You cannot properly round the number itself, because float (and double) aren't decimal floating-point - they are binary floating-point - so rounding to decimal positions is meaningless. You …

  10. java - What is the difference between the float and integer data …

    Jan 26, 2011 · In a float, those 32 bits are divided between three distinct parts: The sign bit, the exponent and the mantissa. They are laid out as follows: S EEEEEEEE …