Cast constants to float to avoid gcc converting to and from