Replace bc commands

Some systems may not support the bc command. Replace
with an alterative that performs simple floating-
point arithmetic.

Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2 files changed