tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] An issue with literal floats


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] An issue with literal floats
Date: Wed, 4 Mar 2015 17:26:42 +0300

And with this change
- int t2a = (int)(t1 * f);
- int t2b = (int)(t1 * (float)0.25f);
+ int t2a = (int)(t1 * (double)f);
+ int t2b = (int)(t1 * (double)0.25f);
result is all cases is
     t2a=44100313 t2b=44100313



reply via email to

[Prev in Thread] Current Thread [Next in Thread]