Check out example codes for "Decimal to Double conversion in Swift". It will help you in understanding the concepts better.
Code Example 1
let someDouble = Double(truncating: someDecimal as NSNumber)
Learn ReactJs, React Native from akashmittal.com