code generated "sign" function now uses "d" instead of "double"