We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Thank you for your time.
The division really was the issue.
Clojure uses fractions so (println (/ 1 3)) will print 1/3 and not 0.333.
Using (* 0.5 ) instead made all the tests pass.
:)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Compute the Area of a Polygon
You are viewing a single comment's thread. Return to all comments →
Thank you for your time. The division really was the issue. Clojure uses fractions so (println (/ 1 3)) will print 1/3 and not 0.333. Using (* 0.5 ) instead made all the tests pass.
:)