About 10,700,000 results
Open links in new tab
  1. 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 …

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

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

    For floating-point integers (I'll give my answer in terms of IEEE double-precision), every integer between 1 and 2^53 is exactly representable. Beyond 2^53, integers that are exactly …

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

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

  6. c - What is the difference between float, _Float32, _Float32x, and ...

    Jul 5, 2023 · Usually, float and double are binary32 and binary64 types respectively, and long double is binary128, an x87 80-bit extended floating-point number, or represented same as …

  7. Difference between numeric, float and decimal in SQL Server

    Jun 29, 2009 · What are the differences between numeric, float and decimal datatypes and which should be used in which situations? For any kind of financial transaction (e.g. for salary field), …

  8. Why dividing two integers doesn't get a float? [duplicate]

    They may be equal, but usually, a float is a 32-bit type with 24 bits of precision, the largest finite number it can store is 3.4028235e38, the smallest positive number 1.0e-45, while double is a …

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

  10. How do I convert all of the items in a list to floats?

    632 [float(i) for i in lst] to be precise, it creates a new list with float values. Unlike the map approach it will work in py3k.