Skip to content

Instantly share code, notes, and snippets.

@ronaldgreeff
Created February 13, 2020 15:57
Show Gist options
  • Save ronaldgreeff/c35293d7e3c266820e609c1bd84ea247 to your computer and use it in GitHub Desktop.
Save ronaldgreeff/c35293d7e3c266820e609c1bd84ea247 to your computer and use it in GitHub Desktop.
nCols = 4;
for (var c=0; c<nCols; c++) {
iStart = (c/nCols).toFixed(1)
iEnd = ( (c+1) /nCols).toFixed(1)
console.log(
iStart, iEnd
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment