Skip to main content
Fixed grammar
Source Link
Jeff Schaller
  • 68.9k
  • 35
  • 122
  • 268

Is this the right way to do float to integer conversion in bash? Or isIs there any other method  ?

flotToint() { printf "%.0f\n" "$@" } 

Is this the right way to do float to integer conversion in bash? Or is there any other method  ?

flotToint() { printf "%.0f\n" "$@" } 

Is this the right way to do float to integer conversion in bash? Is there any other method?

flotToint() { printf "%.0f\n" "$@" } 

Is this the right way of doingto do float to integer conversion in bash,? Or is there any other method ?

flotToint() { printf "%.0f\n" "$@" } 

Is this right way of doing float to integer in bash, Or is there any other method ?

flotToint() { printf "%.0f\n" "$@" } 

Is this the right way to do float to integer conversion in bash? Or is there any other method ?

flotToint() { printf "%.0f\n" "$@" } 

Bash: Float How to Integerconvert floating point number to integer?

Tweeted twitter.com/#!/StackUnix/status/376227177072959488
edited tags
Link
Gilles 'SO- stop being evil'
  • 866.5k
  • 205
  • 1.8k
  • 2.3k
Loading
Source Link
Rahul Patil
  • 25.6k
  • 26
  • 86
  • 96
Loading