<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><blockquote type="cite" class="">On 05 Dec 2015, at 14:27, Jonathan Hull <<a href="mailto:jhull@gbis.com" class="">jhull@gbis.com</a>> wrote:<br class=""></blockquote><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div class="">For example:<br class="">• Int -> Float, Double, or CGFloat (but not the other way)<br class=""></div></div></blockquote><div><br class=""></div><div>These are not "safe" conversions in general. A <span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Float</span> can only hold integral values up to 2^24, and <span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Double</span> a only up to 2^53. Neither can fit 64-bit integers and the former not even <span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;" class="">Int32</span>.</div><br class=""><blockquote type="cite" class=""><div class=""><div class="">On a side note, can we get a version of floor() which returns an Int (or have I missed that somewhere)?<br class=""></div></div></blockquote></div><div class=""><br class=""></div><div class="">This would be nice. As would be similar versions of <span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px;" class="">ceil</span> and <span style="color: rgb(61, 29, 129); font-family: Menlo; font-size: 11px;" class="">round</span>.</div><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px; font-size: 12px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">— Pyry Jahkola<br class=""></div></span></div></span></div></body></html>