Sample Header Ad - 728x90

how to make bc to show me 10 and not 10.00

15 votes
6 answers
8602 views
#!/bin/bash q=$(bc secondcoordinate.txt That's just part of the script, but I think it's enough to clarify my intentions. p is a variable with just two decimals, so q should be an integer... Nevertheless, bc shows, for example, 10.00 instead of 10. How can I solve this?
Asked by Diego (319 rep)
Nov 3, 2016, 12:13 AM
Last activity: Mar 21, 2025, 11:02 AM