Skip to content

Instantly share code, notes, and snippets.

@rahulinux
Created September 5, 2013 14:24
Show Gist options
  • Save rahulinux/6450802 to your computer and use it in GitHub Desktop.
Save rahulinux/6450802 to your computer and use it in GitHub Desktop.
Convert float to integer in bash
flotToint() {
printf "%.0f\n" "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment