Ad
  • Default User Avatar

    Look "ToString" in Free Pascal documentation.

  • Custom User Avatar

    Free Pascal Compiler version 3.2.0 [2020/06/14] for x86_64
    Copyright (c) 1993-2020 by Florian Klaempfl and others
    Kata.pas(28,27) Error: Illegal qualifier
    Kata.pas(28,53) Error: Illegal qualifier
    Kata.pas(32,4) Fatal: There were 2 errors compiling module, stopping
    Fatal: Compilation aborted
    Error: /usr/bin/ppcx64 returned an error exitcode

    The function needs a string return value but this error keeps popping off because I used a Integer/Double to String converter, which I know is correct

  • Custom User Avatar

    The task is not clear for whom English is the native language. What can we say about the Russian. And so interesting

  • Default User Avatar

    Read carefully the detailed example.

  • Default User Avatar

    Don't post issue when you ask for help, post a question.
    When I run your code I get no error for the first test but

    For 2000, 8000, 1000, 1.50
    Expected: 6 766 but got 6 -400
    
  • Custom User Avatar

    Can someone help me with this one?

    I'm solving this Kata using Pascal FPC 3.2. Whenever I try to return an Integer that was converted to String (e.g. thisValue.ToString or IntToStr(thisValue)), there was an error exception on that specific conversion. Could this be a bug or something?