This message was deleted.
# announcements
s
This message was deleted.
k
fun centuryFromYear(year: Int) = (year-1)/100
I'm not sure what you want for negative years or the year 0, but this should work for positive ones.
(for next time, surround your code with ``` or upload it as a file)
c
thanks
sorry,
'''''
Copy code
`` oh I found it.. dang.. never even used that ```
k
Please don't delete your original message(s).
c
oh.. ok..
k
It just makes the discussion confusing for people who see it later.
c
ah, thanks
k
No problem!
c
sorry.. completely new here..
so cool though
code is like entering another planets atmosphere huh
k
🙂
c
its as if learning kotlin is like searching for gold
you have to really search just to find a small nugget
x
...try Erlang and you will see 😇