On Fri, Apr 15, 2016 at 4:41 PM, Jens Alfke <j...@mooseyard.com> wrote:
>
>
> --Jens     [via iPhone]
>
>> On Apr 15, 2016, at 4:26 PM, Dmitri Gribenko <griboz...@gmail.com> wrote:
>>
>> The distance is signed so that we can represent negative distances.
>> r.distance(from:to:) should be able to measure distances backwards.
>
> Yeah, makes sense in general, just not for this particular case...
>>
>> We are aware of this issue, but we don't know of a good solution.
>> We'd appreciate your suggestions.
>
> Add Int128! ;-)
>
> Ok, maybe that just pushes the problem further down the road.

Indeed.

> How about making Distance be Double? ;-)

Double only has 53 bits of precision.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to