[swift-users] Decimal to Double?

Rick Mann rmann at latencyzero.com
Mon Nov 28 04:51:48 CST 2016


Ugh. Thanks!

> On Nov 28, 2016, at 02:40 , Alex Blewitt <alblue at apple.com> wrote:
> 
> You can wrap it with an NSDecimalNumber, and then cast it to a Double from there:
> 
> Double(NSDecimalNumber(decimal:Decimal(1.0)))
> 
> Alex
> 
>> On 28 Nov 2016, at 10:13, Rick Mann via swift-users <swift-users at swift.org> wrote:
>> 
>> How do I get a Double from a Decimal?
>> 
>> TIA,
>> 
>> -- 
>> Rick Mann
>> rmann at latencyzero.com
>> 
>> 
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
> 


-- 
Rick Mann
rmann at latencyzero.com




More information about the swift-users mailing list