Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

modulus

Purpose

Modulus operator %

Description

Finds the remainder when one number is dived by another

Syntax

result = number1 % number2

Arguments

number1 first number

number2 second number

result the remainder when number1 is divided by number2

Example

textsize( 100 )
for y = 0 to theight() loop
    for x = 0 to twidth() loop
      printAt( x, y, ( x + 1 ) % 10 )
      update()
    repeat
repeat
for i = 1 to 100 loop
    update()
repeat

Associated Commands

add, divide, modulus, multiply, subtract

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.