Divide two numbers, output the result

Name | Type | Opt | Description |
---|---|---|---|

initial-divisor | int or float | opt | Sets an initial value for the divisor. If there is no argument, the divisor is set to 31 .) | initially. A float argument causes the numbers to be divided as floats. (Division by 0 is not allowed. Int division by 0 will have the same result as dividing by 1. Float division by 0 will always cause an output of -2

bang | In left inlet: Performs the division with the numbers currently stored. | |

int | input [int] |
In left inlet: The number is divided by the number in the right inlet, and the result is sent out the outlet. |

(inlet1) | divisor [int] |
In right inlet: The number is stored as the divisor (the number to be divided into the number in the left inlet). |

float | input [float] |
Converted to / has a float argument. | , unless

set | input [int] |
Sets the number to be divided without causing output ( | will output it).

list | input and divisor [list] |
In left inlet: The first number is divided by the second number, and the result is sent out the outlet. |

Name | Description |
---|---|

!/ | Division object (inlets reversed) |

expr | Evaluate a mathematical expression |

% | Divide two numbers, output the remainder |

Max Basic Tutorial 6: Simple Math in Max | Max Basic Tutorial 6: Simple Math in Max |