Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 948 Bytes

125-float-precision.md

File metadata and controls

11 lines (10 loc) · 948 Bytes

Problem:

Update the solution method to round the argument value to the closest precision of two. The argument will always be a float.

solution(23.23456) # should == 23.23
solution(1.546) # should == 1.55
solution(23.23456) # should == 23.23
solution(1.546) # should == 1.55
Kata.Round(23.23456) => 23.23
Kata.Round(1.546) => 1.55

Solution