4 examples for qalc
# calculates GB equivalent of a KB value. # "--terse" or short "-t" means give only the result: short output. qalc --terse <<< "1168528 / (1024^2)"
# Results in / writes to screen: # (5 * "apples") + (3 * "oranges") - (1 * "apples") = 4 "apples" + 3 "oranges" qalc '5 "apples" + 3 "oranges" - 1 "apples"'
# qalc solves an equation with one unknown. # Writes to screen: (((5 * x) - 10) = 77) = (x = 17,4) qalc '5x - 10=77'
# Calculate an exchange rate. # Writes to screen for example: 50 * euro = approx. 49,77 $ qalc 50 EUR to USD