CPC Basic

Would you like to react to this message? Create an account in a few clicks or log in to continue.
CPC Basic

Basic cross-compiler for Amstad CPC


2 posters

    RSX ROUND command

    avatar
    poppichicken


    Posts : 16
    Join date : 2012-03-16

    RSX ROUND command Empty RSX ROUND command

    Post  poppichicken Mon Mar 19, 2012 1:59 am

    Hi there.

    Me again. Very Happy

    When I do something like this:
    Code:

    |ROUND,r1,r2
    I get a "RSX Error" when running the program.
    (The documentation on cpcbasic.tk shows that 2 parameters are required).

    When I add a 3rd parameter like this:
    Code:

    |ROUND,r1,r2,r3
    I no longer get the error.

    But I don't know what the 3rd parameter actually does.
    avatar
    Dinoneno


    Posts : 10
    Join date : 2012-03-11

    RSX ROUND command Empty Re: RSX ROUND command

    Post  Dinoneno Mon Mar 19, 2012 4:30 am

    Sorry, it's my fault. The 3th parameter is the number of decimals for round, as funcion ROUND in Locomotive Basic. It's yet fixed in documentation in website.
    avatar
    poppichicken


    Posts : 16
    Join date : 2012-03-16

    RSX ROUND command Empty Re: RSX ROUND command

    Post  poppichicken Mon Mar 19, 2012 11:40 am

    Cool, thanks!

    Sponsored content


    RSX ROUND command Empty Re: RSX ROUND command

    Post  Sponsored content


      Current date/time is Sun Nov 28, 2021 11:06 pm