Shop OBEX P1 Docs P2 Docs Learn Events
Using modulo in BASIC — Parallax Forums

Using modulo in BASIC

Drew n MattDrew n Matt Posts: 5
edited 2010-02-25 16:59 in BASIC Stamp
I know in java you can do 24%10 and it will return 4 because modulo gives the remainder. Is there a similar command in BASIC that will give me the remainder of the integer?

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2010-02-25 16:59
    The Help file in the Editor software has explanantions of all commands and operators including "//", the Modulus operator.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
Sign In or Register to comment.