On 8/24/15 5:03 PM, Steven Schveighoffer wrote:
Whatever the issue is, it is not unavoidable, because as has been shown, other languages do it correctly.Your other examples use doubles, not reals. It's not apples to apples.
#include <stdio.h>
int main()
{
long double x = 1.2;
x *= 10.0;
printf("%lld\n", (unsigned long long)x);
}
output:
11
-Steve
