Change long to float type for Weight