W2031 Designing a Floating Point Type
From Coder Merlin
Revision as of 21:25, 10 November 2020 by Chukwuemeka-tinashe (talk | contribs) (Created page with "thumb|Evergreen Point Floating Bridge == Prerequisites == == Background == == Introduction == == Topic...")
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
== Prerequisites == == Background == == Introduction == == Topic Headers == == Key Concepts == == Exercises ==
- Design a struct whose member properties may only be of type Int.
- Define initializers:
- init(_ d:Double)
- init(_ n:Int)
- Define operations for addition, subtraction, multiplication, and division.
== References ==