[swift-users] Different behaviour when casting Float and Double to NSNumber

2016-10-05 Thread Lars-Jørgen Kristiansen via swift-users
I'm working with a third party API for some external hardware. One of the functions takes a NSNumber, and it fails to interact correctly with the hardware if I cast a Float too NSNumber, but works as expected if I use Double.. I dont know if it is related to NSNumber.stringValue since I dont

Re: [swift-users] Different behaviour when casting Float and Double to NSNumber

2016-10-05 Thread Lars-Jørgen Kristiansen via swift-users
Oct 5, 2016, at 2:30 AM, Lars-Jørgen Kristiansen via swift-users >> <swift-users@swift.org <mailto:swift-users@swift.org>> wrote: >> >> I'm working with a third party API for some external hardware. One of the >> functions takes a NSNumber, and it fails to i