karelpeeters
fromNumber(n: Int) = when { n < 1000 -> SMALL n < 10000 -> MEDIUM n < 100000 -> BIG else -> HUGE }