F#: The type ‘unit’ does not match the type ‘float’

March 10th, 2010 / Tales from a Trading Desk

F# error error message are somewhat painful. “The type ‘unit’ does not match the type ‘float’” tuned out to require me to add an else statement to the code I had written. Still not sure why, but at least it complies now :)

Comments are closed.