On iOS (and other 32-bit platforms), CGFloat
is an alias for float
.
Your literal (444563.4004
) is a double
, which promotes myFloat
to a double
and makes the return type of your block double
(and not the float
you said it would be when you declared debt
). Either change the literal to a float
(append f
to the end of it), or cast it to CGFloat
.