fixes formatting, handles inputs as floats.