ceil Mathematical Operations:Mathematical Functions ceil ceil Returns the smallest integer not less than x Description Returns the smallest integer not less than x Syntax ceil(x) (init-, control-, or audio-rate arg allowed) ceil(k/i[]) (k- or i-arrays ) 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 ceil opcode. It uses the file ceil.csd. Example of the ceil 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: instr 1: iceil = -1.000 instr 1: iceil = 1.000 instr 1: iceil = 1.000 instr 1: iceil = 1.000 instr 1: iceil = 0.000 instr 1: iceil = 0.000 instr 1: iceil = 0.000 Here is another example of the ceil opcode. It uses the file ceil-2.csd. A second example of the ceil opcode. 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 Author: Istvan Varga New in Csound 5 2005