约 31,700,000 个结果
在新选项卡中打开链接
  1. What is the difference between float and double? - Stack Overflow

    2021年12月31日 · 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

    2012年5月9日 · 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. Ranges of floating point datatype in C? - Stack Overflow

    2012年4月11日 · 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 …

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

    How to use % operator for float values in c Asked 14 years, 3 months ago Modified 8 years, 1 month ago Viewed 74k times

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

    2009年7月2日 · 1 The main difference between float and double is precision. Wikipedia has more info about Single precision (float) and Double precision.

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

    2011年1月26日 · 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, …

  7. What C# type stands for C++ float*? - Stack Overflow

    float * is a float pointer type in C#. If the function is expecting float pointer arguments (float *), then the function must be presumed to work on pointers, possibly involving pointer arithmetic.

  8. comparing float/double values using == operator - Stack Overflow

    The code review tool I use complains with the below when I start comparing two float values using equality operator. What is the correct way and how to do it? Is there a helper function …

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

    2015年12月14日 · 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 …

  10. Why are floating point numbers inaccurate? - Stack Overflow

    Why do some numbers lose accuracy when stored as floating point numbers? For example, the decimal number 9.2 can be expressed exactly as a ratio of two decimal integers (92/10), both …