changes to byte convert function

rounding rather than ceiling, and handling of two values
to find rounding scale to fit both.