Ad
  • Default User Avatar

    Look "ToString" in Free Pascal documentation.

  • 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