I don't get it, in (8.1,5,3) and (1.99, 5, 3) in Javascript when the bigger number from the first two is substracted by the other the result for the first one is 3.09 and the other 3.01 which are both bigger than the margin 3.Why is the solution for the first one 1 and for the other -1?
UPDATED GROOVY TRANSLATION
Changes:
org.junit.Test
toorg.junit.jupiter.api.*
@Order
Annotations for Test CasesGroovy Translation
Description would benefit from a suggestive photo. Also, why is the
25%
limit condition given if the user does not need to validate the input?In rust margin should be an Option enum
I don't get it, in (8.1,5,3) and (1.99, 5, 3) in Javascript when the bigger number from the first two is substracted by the other the result for the first one is 3.09 and the other 3.01 which are both bigger than the margin 3.Why is the solution for the first one 1 and for the other -1?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution