Skip to content

Division Remainder Tile#


alt text A tile used to obtain de remainder of the division between two numeric values

Description#

Description

  • In arithmetic, the remainder is the integer "left over" after dividing one number by another
  • Returns the result of the X % Y operation
  • X and Y default to 0 if not wired, or a conversion to float could not be made

Inputs#

X#

Info
  • Type
    Numeric value defaults to 0
    
    Accepted types: Integer, Float, String
    
  • Usage ``` markdown Wire any tile that returns a numeric or string value that does not include letters or special characters

Any error will deafult the value to 0 ```

Y#

Info
  • Type
    Numeric value defaults to 0
    
    Accepted types: Integer, Float, String
    
  • Usage
    Wire any tile that returns a numeric or string value different from 0 that does not include letters or special characters
    
    Any error will deafult the value to 0
    

Output#

X % Y#

Info
  • Return
    Float defaults to 0
    
  • Usage
    Will return the result of the operation
    

Real Signature#

Signature

  • A plain language description of the function associated with the tile
    def division_remainder(x, y):
        return x % y