vak: (0)
Serge Vakulenko ([personal profile] vak) wrote 2023-01-15 09:11 pm (UTC)

Hex literals work fine. Not much human friendly though.
#include <stdio.h>
int main ()
{
    printf("%a\n", -0x5.2p0 + 0x4.9p0);
    printf("%a\n", 0x4.8p0 - 0x6.1p0);
    printf("%a\n", 0x4.3p0 - 0x3.6p0);
}
Результат:
-0x1.2p-1
-0x1.9p+0
0x1.ap-1

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