query: Why `double i = 3.3, j = 1.1; int k = i/j; printf("%d\n", k);` gets 2?
positive_passages.docid: 43
positive_passages.text: Is floating point math broken?
negative_passages.docid: 108820
negative_passages.text: Applications using Decimal versus double . .
negative_passages.docid: 70666
negative_passages.text: How to convert a Decimal to a Double in C#?
negative_passages.docid: 88308
negative_passages.text: Why does integer division in C# return an integer and not a float?
negative_passages.docid: 38055
negative_passages.text: Why double width = 50/110000; the output is 0.000000000000000?
negative_passages.docid: 132090
negative_passages.text: Java Double value = 0.01 changes to 0.009999999999999787
negative_passages.docid: 31907
negative_passages.text: Why does N[1.000 01, 10] return 1.00001, but N[1.000 001, 10] returns only 1.?
negative_passages.docid: 59342
negative_passages.text: My floating point number has extra digits when I print it
negative_passages.docid: 4861
negative_passages.text: Can 0.99999999999 be rounded to 1.0 when multiplying?
negative_passages.docid: 44529
negative_passages.text: Wrong number of parameters to printf leads to strange results
negative_passages.docid: 102390
negative_passages.text: Double vs. BigDecimal?
negative_passages.docid: 114832
negative_passages.text: Why does this floating-point calculation give different results on different machines?
negative_passages.docid: 52747
negative_passages.text: What's up with Java's "%n" in printf?
negative_passages.docid: 36647
negative_passages.text: Why does printf("%f",0); give undefined behavior?
negative_passages.docid: 132821
negative_passages.text: Why are floating point numbers printed so differently?
negative_passages.docid: 100081
negative_passages.text: What is the significance of 0.0f when initializing (in C)?
negative_passages.docid: 95350
negative_passages.text: Why does 1 // 0.1 == 9.0?