divz Mathematical Operations:Opcode Equivalents of Functions divz divz Safely divides two numbers. Syntax ares divz xa, xb, ksubst ires divz ia, ib, isubst kres divz ka, kb, ksubst ...divz(ka, kb, ksubst)... (no rate restriction) Description Safely divides two numbers. Initialization Whenever b is not zero, set the result to the value a / b; when b is zero, set it to the value of subst instead. Examples Here is an example of the divz opcode. It uses the file divz.csd. Example of the divz opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. Its output should include lines like: 200.000000 / 0.000000 = -1.000000 200.000000 / 66.757370 = 2.995924 200.000000 / 133.514739 = 1.497962 See also Opcode Equivalents of Functions Credits Author: &namejohn; after an idea by &namebarry; Example written by &namekevin;. Functional form available in csound Version 6.00