Minecraft wiki entry for Lectern, associated text: Where is the "floor" operation (round down), is the maximum number of pages the book on the lectern has, and is the current page number the lectern is turned to.