Made some explicit type casts in order to be able
to compile when mrs_real is set to be a float instead
of the default double.