DiscoverOriginalPrice(75,25)=>100.0# Close, but it should be 100.00DiscoverOriginalPrice(51.98,30)=>74.26DiscoverOriginalPrice(50,50)=>100.0# Close, but it should be 100.00
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have figured out the logic in Ruby, but the result gets weird when it comes to perfect numbers.
Which returns