fpc/packages/numlib/tests/spesgnte.pas
Michaël Van Canneyt 3798dd8d53 * PChar -> PAnsiChar
2023-07-15 18:22:39 +02:00

35 lines
469 B
ObjectPascal

program spesgnte;
uses
spe,
typ;
var
x: ArbFloat;
h: shortstring;
t: ArbInt;
begin
Write('program results spesgnte');
case SizeOf(ArbFloat) of
4: writeln('(single)');
8: writeln('(double)');
6: writeln('(real)');
end;
x := pi;
Str(x, h);
t := Length(h) - 1;
writeln;
writeln('': t div 2, 'x', '': t - 3, 'spesgn(x)');
writeln;
while not EOF do
begin
readln(x);
writeln(x, ' ': t div 2, spesgn(x));
end;
end.