animation/calculate_center.sh

4 lines
56 B
Bash

#!/bin/bash
echo "scale=2;${1}+((${2}-${1})/2.0)" | bc