Replace SDdouble with SDfloat everywhere