Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / tw9026.pp
Size: Mime:
operator := (input:extended) output: string;
begin
   str(round(input),output);
end;

operator + (const s: string; input:extended) output: string;
begin
   str(round(input),output);
   output:=s+output;
end;

procedure test(a:string);
begin
   writeln(a);
   if (a <> 'help1') then
     halt(1);
end;

var
s: string;
begin
   s:='help';
   test('help'+1);
   test(s+1);
   test(s+1.2);
   test(s+extended(1.2));
   test(s+string(1.2));
end.