#!/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
Last activity: Mar 21, 2025, 11:02 AM