.
, , 839.21
, printf cygwin gcc. R , , printf mingw, , Windows C/++. Chux , cygwin , cygwin .
- C, , . https://www.tutorialspoint.com/compile_c_online.php
, , - , 7.21 839.21 , , .
printf ( "%. 100f\n", 7.21);
printf ( "%. 100f\n", 839.21);
printf, .
printf("%f\n",7.21);//7.210000
printf("%f\n",839.21);//839.210000
,
printf("%.60f\n",7.21);
7.209999999999999964472863211994990706443786621093750000000000
printf("%.20a\n",7.21);
0x1.cd70a3d70a3d70000000p+2
printf("%.60f\n",839.21);
839.210000000000036379788070917129516601562500000000000000000000
printf("%.20a\n",839.21);
0x1.a39ae147ae1480000000p+9
, , , .. , , 7.21, 839.21. , . , , . 7.21 8.3921. 839 , 1101000111. , 1.A , 1, nibble 1010, A. 7.21
, , 7.21 839.21
Chux , float % a. , float, float f; printf %.60f %.20a, printf.
printf("%.60f\n",f); //float f=7.21
7.210000038146972656250000000000000000000000000000000000000000
printf("%.20a\n",f); //float f=7.21
0x1.cd70a400000000000000p+2 <-- 7.21 in float, in hex.
printf("%.60f\n",f); //float f=839.21
839.210021972656250000000000000000000000000000000000000000000000
0x1.a39ae200000000000000p+9 <-- 839.21 in float, in hex
, , Chux , , float % a.
, , ( ) cygwin, , double x=7.21; printf("%a\n", x); , , float. 0x1.cd70a4p+2
, % f , printf cygwin gcc.exe(rubenvb-4.5.4) 4.5.4
Copyright (C) 2010 Free Software Foundation, Inc. ( , ).
printf mingw printf, C/++ iostreams MinGW cygwin gcc, chux. ( cygwin, ).