fixing int vs double output