Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

"%" function:

  • Can also be called as nas_mod

  • Can also be called as nas_modulo

  • Can also be called as nas_remider

Find the reminder of the division of the firs argument by the second argument if both are strings as number. If the second argument is "0" will return nothing

Examples:

  • running: ("%" "5", "3") will give: "2"

  • running: ("%" "7", "2") will give: "1"

  • running: ("%" "7", "0") will return nothing Because Can not divide by zero.

  • running: ("%" "10", "7.5") will give: "2.5"

  • running: ("%" "10", "-7") will give: "3"

  • running: ("%" "-10", "7") will give: "-3"

  • running: ("%" "-10", "-7") will give: "-3"

  • running: ("%" "7", false) will return nothing

  • running: ("%" [1], "4") will return nothing