[ad_1]
No, CGFloat doesn’t characterize a BigDecimal-type quantity, with infinite precision. CGFloat is outlined as a struct with both wraps a Double or a Float, relying on whether or not you might be on a 32-bit or 64-bit platform; i.e., on a 64-bit platform, it’s equal to a Double, with no kind of precision or vary.
The distinction within the warning you see is that Double is a sort native to Swift, which the compiler is aware of about, and has sufficient details about so as to have the ability to present such a warning. CGFloat, nonetheless, is outlined by Apple frameworks, and the compiler doesn’t know sufficient about it to supply such a warning.
[ad_2]
