K-C-S IEEE754. (s), (M) (E) :
(-1)s × 1.M × 2E
. IEE754-2008 2 10, (decimal) .
, , , (float). , , . (float/single) 8 , 23. E-127. , 0,15625
:
- s=0 ( )
- E=011111002-12710 = -3
- M = 1.012 ( )
- F = 1.012e-3 = 2-3+2-5 = 0,125 + 0,03125 = 0,15625
40.
, 0 256 . Text:
Var
F: text; {F - }
. : chr(13) chr(10). . Input Output System Text. . (Read) (Write) . , , .
Read(F, Ww), Ww word, F , , Ww. , . :
- ( Assign), ( Rewrite);
- ( Assign), ( Reset).
: . :
Append(va F: text);
. , . Append , Reset Rewrite.
|
|
Read Write, . : Readln, , Read, ; Writeln, .
Read , a Readln , . . . Write Writeln.
- Eoln, Eof, SeekEoln, SeekEof.
Eoln(var F: text) True, Eof(F) True. False.
Eof(var F: text) True, , False .
SeekEoln(var F: text) True , , . False.
SeekEof(var F: text) True, . , , . , .
41.