<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 1, 2016, at 6:12 AM, Björn Forster via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">In <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0067-floating-point-protocols.md" style="font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:25.6px;color:rgb(64,120,192);outline-width:0px;background-color:transparent" class="">SE-0067: Enhanced Floating Point Protocols</a> is stated that pi will be a built in constant from Swift 3 onwards.<div class=""><div style="font-size:12.8px" class="">Is there a specific reason why pi as a constant will be included but not e? e is also ubiquitous in scientific, engineering and economic calculations. I seems odd to me to include pi but then not e as well. Also Python provides both pi and e. Shouldn't Swift provide also at least both pi and e as constants for its floating point types? </div><div style="font-size:12.8px" class="">It is also not nice if different numerical packages for swift will come up all with their own different definitions of e. I think Swift 3 should use the opportunity to get this thing right from the beginning and provided both pi AND e. </div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Is there a new proposal necessary to still get e as a built in constant into Swift 3? </div></div></div></div></blockquote><br class=""></div><div>I think this thread will answer that question for you:</div><div><a href="http://thread.gmane.org/gmane.comp.lang.swift.evolution/22200/focus=22466" class="">http://thread.gmane.org/gmane.comp.lang.swift.evolution/22200/focus=22466</a></div><div><br class=""></div><div><div class="" style="font-family: Palatino-Roman;"></div><blockquote type="cite" class=""><div class="" style="font-family: Palatino-Roman;">This was discussed as part of SE-0067.</div><div class="" style="font-family: Palatino-Roman;"><br class=""></div><div class="" style="font-family: Palatino-Roman;">The consensus was that pi deserved special treatment, as it is used in general-purpose code an order of magnitude more often than the all other constants combined. I don’t think that anyone argued against it’s inclusion.</div></blockquote><blockquote type="cite" class=""><div class="" style="font-family: Palatino-Roman;">– Steve</div></blockquote></div><br class=""></body></html>