int Mathematical Operations:Mathematical Functions int int Extracts an integer from a decimal number. Description Returns the integer part of x. Syntax int(x) (init-rate or control-rate; also works at audio rate in Csound5) where the argument within the parentheses may be an expression. Value converters perform arithmetic translation from units of one kind to units of another. The result can then be a term in a further expression. Examples Here is an example of the int opcode. It uses the file int.csd. Example of the int 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 these: integer (0.000000/3) = 0.000000 integer (1.000000/3) = 0.000000 integer (2.000000/3) = 0.000000 integer (3.000000/3) = 1.000000 integer (4.000000/3) = 1.000000 integer (5.000000/3) = 1.000000 integer (6.000000/3) = 2.000000 integer (7.000000/3) = 2.000000 integer (8.000000/3) = 2.000000 integer (9.000000/3) = 3.000000 Here is an example for the rounding-group, comparing the different rounding opcodes. It uses the file rounding-group.csd. Example of the rounding group. See also Mathematical Functions Credits