What is the point of the Decimal type?

This is not true (quite the opposite actually) as far as I understand (and has been discussed here and here)

The only way to get to an exact Decimal is to use a String.
Going through Double is always the wrong approach.

$ swift
Welcome to Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8).
Type :help for assistance.
  1> import Foundation 
  2> let d: Decimal = 0.14159 
d: Decimal = 0.141590

  3> print("\(d)") 
0.14158999999999997952
  4> let d: Decimal = Decimal(string: "0.14159")! 
d: Decimal = 0.141590

  5> print("\(d)") 
0.14159
3 Likes