Lukas-Fabian Moser <l...@gmx.de> writes:

> Folks,
>>
>> I think I isolated the rounding (?) issue leading to the misplaced
>> note head in https://sourceforge.net/p/testlilyissues/issues/5303/
>>
>> Please forgive the horrible C/C++ jumble - it's been quite long
>> since I did this kind of stuff and usually only ever wrote vanilla
>> C:
>>
>> #include <stdio.h>
>>
>> double a = -0x1.7ffffffffffffp+1;
>>
>> int main(void) {
>>   printf("%a, as float: %f, as int: %d\n", a, a, int (a));
>> }
>
> Aah, I'm sorry - I was not aware that casting to int works by
> /truncating/. Then it's quite obvious what's happening here.

Which code do you think has a problem related to your example?

-- 
David Kastrup

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to