Skip to main content

Python 3, 22 18 bytes

lambda n:(n+8)//10

Must casting result to integer, otherwise obtain floating point result

Thanks to @JoKing for sagestsuggesting to use integer division.

Python 3, 22 18 bytes

lambda n:(n+8)//10

Must casting result to integer, otherwise obtain floating point result

Thanks to @JoKing for sagest to use integer division.

Python 3, 22 18 bytes

lambda n:(n+8)//10

Thanks to @JoKing for suggesting to use integer division.

added 65 characters in body
Source Link
n1k9
  • 81
  • 6

Python 3, 2222 18 bytes

lambda n:int((n+8)//10)

Must casting result to integer, otherwise obtain floating point result

Thanks to @JoKing for sagest to use integer division.

Python 3, 22 bytes

lambda n:int((n+8)/10)

Must casting result to integer, otherwise obtain floating point result

Python 3, 22 18 bytes

lambda n:(n+8)//10

Must casting result to integer, otherwise obtain floating point result

Thanks to @JoKing for sagest to use integer division.

Source Link
n1k9
  • 81
  • 6

Python 3, 22 bytes

lambda n:int((n+8)/10)

Must casting result to integer, otherwise obtain floating point result