2018-2: Number Splitting
Write code that, given a scalar real non-negative number, will return a two-element vector of the integer and fractional parts of the number.
Examples
Implementation
You can also run the tests via ⌘/shift + enter