vak: (Default)
Serge Vakulenko ([personal profile] vak) wrote 2024-02-06 07:35 am (UTC)

Я ещё помучил компилятор. Никакие литералы с плавающей точкой не проходят. Вот это работает:
    printf("123.45 = %f\n", (double)12345 / 100);

А это падает с той самой ошибкой:
    printf("123.45 = %f\n", 123.45);

Очевидно, глюк в симуляторе. В процессе обработки литерала с плавающей точкой возникает какая-то фигня.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org