Thank you for all your input.
I made one small little change to accept time input in seconds. >>>>>> let secondsToHours = 2.7777778E-4 ………….. let rDistance = ((speed * time * knotsToMeters * secondsToHours) / earthRadius) <<<<<<<<<< > On Oct 9, 2015, at 9:33 PM, Rick Mann <rm...@latencyzero.com> wrote: > > >> On Oct 9, 2015, at 21:24 , Graham Cox <graham....@bigpond.com> wrote: >> >> >>> On 10 Oct 2015, at 3:21 pm, Rick Mann <rm...@latencyzero.com> wrote: >>> >>> The compiler should figure that out either way it's written. >> >> >> Does it actually replace a function call with an inline constant multiply? > > And it wouldn't be function calls, but instructions, something like > > MUL > DIV > > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com