Ad
  • Default User Avatar

    Hello pitieu,

    The sentence means, that the method/function can receive decimal numbers and if that would be the case then, it should return true only if the number (the decimal number that the method/function has received) is equal to its integer part and that integer part is odd.

    About your other question with the decimal number, this should be the returned value of the method:
    1.1 ->false
    7.7 ->false
    7.77 ->false
    1.01 ->false
    1.10 ->false
    1.12 ->false
    7.17 ->false

    This will return true
    1.0
    -5.0
    -9.00

    Hope the answer could help you!
    Have a good day.

  • Default User Avatar

    But there is a honor restriction as well, IIRC.

  • Custom User Avatar