4 examples for qalc

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