Skip to content

2. Heads Up!

Note: In this problem, you’re asked to enter some APL code, including an APL symbol and the data (text or numbers) given to it. Your code will be tested by the APL Challenge system to check whether it gives the correct answer and uses the methods described below.

The function (Up) takes a number on its right and rounds it up to the closest higher whole number. For example, ⌈3.7 gives 4, and ⌈8.1 gives 9. If the number is already a whole number, leaves it alone, so ⌈5 gives 5.


Write an expression that rounds the number 6.2 up to the nearest whole number. The result should be 7.