Skip to content

2013-7: Float Your Boat

Write a dfn which selects the floating point (non-integer) numbers from a numeric vector.

Examples:

      (your_function) 14.2 9 ¯3 3.1 0 ¯1.1
14.2 3.1 ¯1.1
      (your_function) 1 3 5 ⍝ should return an empty vector

      (your_function) 3.1415
3.1415
your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub